Skip to content

REST API Built Using the Express Framework Running Common CRUD Operations On Routes

Notifications You must be signed in to change notification settings

bephrem1/node-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-rest-api

REST API Built Using the Express Framework Exhibiting Common CRUD Operations On Routes

Date Course Taken: 11/21/17
Instructor/Code: Andrew Chalkley

Skills Learned

  • Facilitating CRUD oprations on URI endpoints (PUT, DELETE, GET, POST, etc.)
  • Defining and nesting schemas for MongoDB documents
  • Defining custom middleware functions
  • Defining custom middleware in the case specific route parameters exist to keep code DRY
  • Defining custom methods on schema to customize existing document attributes
  • Utilizing Mongoose hooks to run functions on certain db states (like pre 'save')
  • Authorizing Cross Origin Resource Sharing (CORS) requests by adding appropriate response headers in application level middleware
  • Error handling on faulty requests

Comments:
Node is very granular in handling API requests. It is very interesting, the more I dig into node the more I see that it lets you be very explicit and control the request response cycle all in your hands. Spring Boot on the other hand has a high level of abstraction that some may like but I am enjoying node...I like seeing everything that is happening in the API creation and the accessing of routes. On the other hand for rapid development Spring with its auto-configurations would certainly seem easier short-term.

Note: node_modules folder has not been uploaded, simply run 'npm install' to load the required modules into your project

About

REST API Built Using the Express Framework Running Common CRUD Operations On Routes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published