Upload, view, search, delete and resize your images!
This project is a submission to the 2021 Winter internship application at Shopify.
- Add an image
- Delete an image
- Get an image
- Search images by title
- Get a resized image
-
Download a copy of this repository, either via the .zip download or
git clonegit clone https://github.com/nfgrep/img_repo -
Open a terminal and navigate to the root of the project
cd img_repo -
Build the docker image
docker build . -t img_repo -
Run the docker image with port 3000 exposed
docker run -p 3000:3000 img_repo -
Done! The server should now be available at localhost:3000
Send a POST to /images/ with formdata containing a file:file and a title:string parameter:
Send a GET to /images/:
Send a GET to /images/:id where :id is the id of your desired image:
Send a GET to /images/search/:query where :query is your search string:
Send a GET to /images/:id/:size where :id is the id of your desired image, and :size is the size:
Send a DELETE to /images/:id where :id is the id of the image you'd like to delete:






