Skip to content

S-a-b-b-i-R/vitalScans-server-side

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technologies Used

NodeJS Express.js MongoDB Mongoose Stripe

Features

  • Mongoose Schema Validation Mongoose schema validation has been implemented for all the models. So when a user signs up, the data is validated before being stored in the database. Similarly, when an operation is performed, the data is validated before being stored in the database.
  • JWT Token Verifation JWT token verification has been implemented for all the routes that require authentication. So when a user logs in, a JWT token is generated and stored in the local storage of the client. When the user logs out, the token is removed. This token is used to authenticate users and protect routes where token is validated before returning data.
  • Admin Verification Admin verification has been implemented for all the routes that require admin authentication. User roles are stored in the database and when a user logs in, the role is checked and if the user is an admin, they are allowed to access the admin routes.
  • Pagination Pagination has been implemented for required routes that return multiple documents. So when a user requests for a list of documents, the documents are paginated and only a certain number of documents are returned at a time.
  • Stripe Payment Intent Stripe payment intent has been implemented for the payment gateway. When a user pays for a test, a payment intent is created and the client secret is returned to the client. The client secret is then used to confirm the payment.
  • Project Structure The project structure has been designed in a way that it is easy to understand and maintain. All the routes are stored in the routes folder and all the controllers are stored in the API folder. All the models are stored in the models folder and all the middlewares are stored in the middlewares folder.

About

Server side of vitalScans web application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors