Giter VIP home page Giter VIP logo

movies-explorer-api's Introduction

Backend for diploma project : Movies Explorer API from Yandex Practicum Web-developer course.

Link:

Backend: https://api.movies-explorer-api.nomoredomainsrocks.r

Description

Backend for Movies Explorer project with the following features: user registration and authentication, add movies to favorites, list and delete from favorites.

Functionality:

  • Users routes:

    • GET /users/me — return user info
    • PATCH /users/me — update user info
  • Movies routes:

    • GET /movies — return all movies added to favorites
    • DELETE /movies/:_id — delete movie added to favorites by _id
    • POST /movies — create movie with the data provided in the request body:
      • country,
      • director,
      • duration,
      • year,
      • description,
      • image,
      • trailer,
      • thumbnail,
      • movieId,
      • nameRU and nameEN.
  • Other routes

    • POST /signup - create user with the data provided in the request body
    • POST /signin - return JWT if the provided email and password in the request body are correct
    • GET /signout - delete JWT from cookies.

Directories

/routes - folder with routes files
/controllers - folder with controllers files(users&movies)
/models - folder with schemas(user&movie)
/utils - folder with auxiliary files
/middlewares - folder with middlewares
/errors - folder with Error classes that extend the error constructor

Technologies

  • Node.js;
  • Express
  • MongoDB
  • mongoose
  • JavaScript:
    • CamelCase style;
    • Common JS modules;
    • Promise, asynchronous functions;

Usage

Clone repository:

git clone [email protected]:щшдштффмвуумф/movies-explorer-api.git

Install dependencies:

npm install

Run app:

npm run start — start server
npm run dev — start hot-reload server

movies-explorer-api's People

Contributors

polinaavdeeva avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.