A basic and simple RESTful API for hosting images (.png, .jpg, .gif) online.
Built with: Node.js, Express and MongoDB.
This Web Server is the backend for the web app Host My Img.
HostMyImg Web Server deployed in Heroku
with CDN files configured in AWS s3
.
HostMyImg Web Server Documentation built with swagger-ui-express
.
- Add one or multiple files
- Formats: png, jpg and gif
- Maximum size: 2M per file
- Retrieve a URL from each file
- Able to remove it from the upload queue
- Node.js
- Express
- MongoDB, Mongoose
- AWS, S3
- Heroku
'GET'
/posts
: get all uploaded files/posts/_id
: get a uploaded file by id (params, in path)
'POST'
/posts
: upload file or multiple files (formats: png, jpeg, gif)
'DELETE'
/posts/_id
: delete a file by id (params, in path)
Please feel free to contribute! This API is still under development โ