A backend server for a video rental service.
A small project to demonstrate some of the actions of video rental store's backend server.
npm install
set jwtPvtKey = your_Key
set DB_STRING = yourPath
- your_Key = the jwt private key for data encryption purposes.
- yourPath = the path to your mongoDB server.
node index.js
Path | Object | Request Types | Comments |
---|---|---|---|
/api/genres | genre | GET / ,GET /:id, PUT /:id, DELETE /:id, POST / | |
/api/customers | customer | GET / ,GET /:id, PUT /:id, DELETE /:id, POST / | |
/api/movies | movie | GET / ,GET /:id, PUT /:id, DELETE /:id, POST / | |
/api/rentals | rental | GET / ,POST / | |
/api/users | user | POST / | A sign up service |
/api/auth | auth | POST / | A login service |
/api/returns |
- Node.js
- Joi v-15.0.3 : Object schema validation.
- bcrypt v-3.0.6 : A library for hashing passwords.
- config v-3.1.0 : Organizes hierarchical configurations for app deployments.
- express v-4.16.4 : web framework for Node.js.
- fawn v-2.1.5 : Promise based Library for transactions in MongoDB.
- jsonwebtoken v-8.5.1 : An implementation of JSON Web Tokens.
- lodash v-4.17.11: The Lodash library exported as Node.js modules - a modern JavaScript utility library delivering modularity, performance & extras.
- moment v-2.24.0 : Parse, validate, manipulate, and display dates and times in JavaScript.
- mongoose v-5.5.9: Mongodb object modeling for node.js
- winston v-3.2.1: A logging library.
- winston-mongodb v-5.0.0 : A MongoDB transport for winston.
- MongoDB
This Project is a project made during the course of Mosh Hamedani. (Programming with Mosh)