Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Kritika37/Rest-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTFUL API using Node.js

=======

Handling Errors in our API

  1. Instead of starting server again and again after any updation download a package called npm install --save-dev nodemon This basically automatically restart our server whenever we change anything

  2. Morgan package for Default login

  3. Fixing CORS(Cross-Origin Resource sharing) error by sending some header files

  4. Added mongodb for database fetching

  5. Moongose validation and creating model for order

  6. Populating queries to get merged data at once

  7. Upload images using package npm install --save multer

  8. User Authentication and return Token(Json data) as verification (RestApi is stateless so cannot use session)

  9. using node.bycrypt.js for hashing passwords

  10. JWT signing with token

  11. Added controller ,cleaner route files


For usage , need to have mongodb atlas set as database and providing accessing to network required

-> npm start (to run)

Releases

No releases published

Packages

No packages published