Skip to content

samantafluture/hostmyimg-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HostMyImg API

A minimal RESTful API for hosting images (.png, .jpg, .gif) online.

Usage

Endpoint

HostMyImg API deployed in Heroku with CDN files configured in AWS s3.

Documentation

HostMyImg API Documentation built with swagger-ui-express.

Features

  • 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
  • Hashed password
  • Username and email validation
  • Authentication with JTW token
  • Retrieve posts per user
  • Retrieve user by post

Built with

  • Node.js
  • Express
  • MongoDB, Mongoose
  • JWT Token
  • AWS, S3
  • Heroku

Endpoints

No Authorization Required

'GET'

  • /posts/free: get all posts
  • /users/free: get all users

'POST'

  • /posts/free: upload file or multiple files (formats: png, jpeg, gif)

'DELETE'

  • /posts/_id: delete a post by id (params, in path)

Auth Routes

'POST'

  • /signup: create new user (required: username, email and password)
  • /login: login user and retrieve token (required: username and password)

Under Construction

Please feel free to contribute! This API is still under development ☕

About

API for hosting image and generate a link on Amazon S3. Built with Node.js, Express and MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published