GithubHelp home page GithubHelp logo

vidly-backend's Introduction

Vidly Backend

Vidly is a movie rental service. This project contains the backend required to serve these services.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

MONGODB_CONNECTION_URL

JWT_SECRET_KEY

Run Locally

Clone the project

  git clone https://github.com/sumitx28/Vidly-Backend.git

Go to the project directory

  cd Vidly-Backend

Install dependencies

  npm install

Start the server

  npm start

API Reference

Users

  GET /api/me       -> Get Current User

  POST /api/users   -> Register New User

Authenticate

  POST /api/auth    -> Authenticate A User

Genres

  ### Public
  GET /api/genres
  GET /api/genres/:id

  ### Authentication Required
  POST /api/genres
  PUT /api/genres/:id

  ### Require Admin Privileges
  DELETE /api/genres/:id

Customers

  ### Public
  GET /api/customers
  GET /api/customers/:id

  ### Authentication Required
  POST /api/customers
  PUT /api/customers/:id

  ### Require Admin Privileges
  DELETE /api/customers/:id

Movies

  ### Public
  GET /api/movies
  GET /api/movies/:id

  ### Authentication Required
  POST /api/movies
  PUT /api/movies/:id

  ### Require Admin Privileges
  DELETE /api/movies/:id

Rentals

  ### Public
  GET /api/rentals

  ### Authentication Required
  POST /api/rentals

Key takeaways

  • Project Setup with Node, Express, and MongoDB.
  • Design and implementation of REST API.
  • Importance of project structure and clean coding.
  • Implementation of authentication and authorization.
  • Utilization of middlewares.
  • Database design and implementation.

In summary, the lessons learned include setting up projects using Node, Express, and MongoDB, understanding the structure and implementation of REST APIs, emphasizing project organization and clean coding practices, implementing authentication and authorization mechanisms, utilizing middlewares effectively, and gaining knowledge in database design and implementation.

Tech Stack

REST Git Postman JavaScript npm Node.js Express mongoDB

Feedback

If you have any feedback, please reach out to me at [email protected]

vidly-backend's People

Contributors

sumitx28 avatar

Stargazers

 avatar

Watchers

 avatar  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.