Skip to content

API to Movie Card Library Project from Trybe, maded fullstack for Trybe NW+ project

License

Notifications You must be signed in to change notification settings

offpepe/Movie-Library-API

Repository files navigation

Movie Library API

Purpose

API for the first project of Front-end module on trybe, but now using my fullstack skills, its part of a personal project called Trybe new game +.

what was worked

  • Creation endpoints GET, POST, PUT and DELETE
  • Creation of CRUD API with REST archtecture
  • Generation of tokens with JWT
  • Management of tokens
  • Upload of files and storage with Multer
  • Receive data from MongoDB cluster
  • API Deployment
  • File management with AWS S3 bucket service

How it works

Resume

it search, catalog, delete and update movies, some of that actions needs a token, this token that is provided before login.

Routes

User routes:

  • /users/:email - returns username, email and hash md5 from email
  • /users/login - validate email and password then returns token that expires in 24 hours;
  • /users/create - creates account;
  • /users/validate/:token - returns if token still valid;

Movie routes:

don't needS token: 🔷

needs token: 🔶

  • /movies - returns every movie from database 🔷
  • /movies/:id - returns filtered movie by id 🔷
  • /movies/create - creates a new movie 🔶
  • /movies/delete/:id - deletes movie that has id equal that param 🔶
  • /movies/update/:id - update movie that has id equal that param 🔶
  • /movies/img/:filename - returns movie cover that has filename equal that param 🔷

Aplication















maded with 💚💛💜🖤🧡