kevinanielsen / go-fast-cdn

A fast and easy-to-use CDN, built with Go.
https://kevinanielsen.github.io/go-fast-cdn/
MIT License
107 stars 23 forks source link

[Feature] Add button for resizing images #90

Open kevinanielsen opened 5 months ago

kevinanielsen commented 5 months ago

Is your feature request related to a problem? Please describe.
A button for resizing an image on the UI using the /api/cdn/resize/image endpoint

Describe the solution you'd like
A button, that opens a modal, where you can input desired height and width and a confirmation.

Describe alternatives you've considered
N/A

Additional context
N/A

sumon-chandra commented 3 months ago

Hi @kevinanielsen, I want to work on this. Can you please describe to me, where the button should be? And I don't find /api/cdn/resize/image endpoint in this project. Where is this endpoint located?

kevinanielsen commented 3 months ago

@sumon-chandra this button should be located along with the rename and delete buttons for the file cards - the endpoint is located in the src/router/api.go file.

Will assign you to the issue now 😃

sumon-chandra commented 3 months ago

@kevinanielsen sorry to say that I've got some major issues in this project.

- The contents aren't loaded on fetching.

- I've tried to run the backend, but I couldn't.

image image

Can you please provide me the instructions on how I can get the contents so that I can work on it? I love working on challenging things and I'm curious to work on this.

kevinanielsen commented 3 months ago

@sumon-chandra I am sorry it has not been easy to work on this.

To run the backend, make sure you are in the root of the project and that you have Go installed. Then run go mod install and then go run . this will spin up the backend.

Once the backend is running, it should be straight forward to develop the frontend :) Let me know if your issues persist