Skip to content

๐Ÿ“— REST API for the Movies Explorer project - a web application for searching and filtering documentary movies in the external database

Notifications You must be signed in to change notification settings

artemshchirov/movies-explorer-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

EXPRESS MOVIES EXPLORER BACKEND

Have a look at the project

https://movies.explorer.project.nomoredomains.sbs/

84.252.136.67 - ip.

Description

This is a part of a graduation project of the web development course. This repository contains REST API used for user authentication, edition user data and setting favorites in Movies Explorer - a web application that allows to search for documentaries within the database provided by Beat Film Festival.

Server domain name: beatfilm-explorer.nomoredomains.monster/api

Methods and routes used in the project

Method Route Description
GET /users/me returns values of email and name of the current user
PATCH /users/me updates user info with the email and ะธะผั passed in the body of the query
POST /movies creates a movie with the following values set in the body country, director, duration, year, description, image*,trailer,nameRU,nameEN,movieIdandthumbnail** (method used for creating a "saved movies" page)
GET /movies returns all movies that were saved by the user
DELETE /movies/movieId deletes a saved movie with a certain _id
POST /signup creates a new user with email, password, name set in body
POST /signin checks email and password sent in body for validity and returns JWT in a success case

Validation

  • The queries that reach the server are getting validated with via celebrate middleware and joi validation library.
  • Validation and server errors are handled

API is protected with authorization middleware.

Technologies

  • Express.js
  • API REST
  • MongoDB
  • Celebrate & Joi validation
  • cors
  • winston
  • helmet
  • jsonwebtoken
  • limiter
  • eslint

Install the project

git clone https://github.com/artemshchirov/react-movies-explorer-api-full.git
cd backend
npm install - installs the dependencies;
npm run dev โ€” starts the server with hot-reload;
npm run start โ€” starts the server;

Further improvement

Full repository with both backend (link to this updated repository) and frontend (link to the repository)

About

๐Ÿ“— REST API for the Movies Explorer project - a web application for searching and filtering documentary movies in the external database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published