Vidly is a movie rental service. This project contains the backend required to serve these services.
To run this project, you will need to add the following environment variables to your .env file
MONGODB_CONNECTION_URL
JWT_SECRET_KEY
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
GET /api/me -> Get Current User
POST /api/users -> Register New User
POST /api/auth -> Authenticate A User
### Public
GET /api/genres
GET /api/genres/:id
### Authentication Required
POST /api/genres
PUT /api/genres/:id
### Require Admin Privileges
DELETE /api/genres/:id
### Public
GET /api/customers
GET /api/customers/:id
### Authentication Required
POST /api/customers
PUT /api/customers/:id
### Require Admin Privileges
DELETE /api/customers/:id
### Public
GET /api/movies
GET /api/movies/:id
### Authentication Required
POST /api/movies
PUT /api/movies/:id
### Require Admin Privileges
DELETE /api/movies/:id
### Public
GET /api/rentals
### Authentication Required
POST /api/rentals
- 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.
If you have any feedback, please reach out to me at [email protected]