Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.26 KB

readMe.md

File metadata and controls

20 lines (17 loc) · 1.26 KB

Node.js (Express) API Project Boilerplate

REST API made with a Router-Controller-Service(Data Access) 3 layer architecture, which I personally am not completely following, but trying to... 😺😺😺

Credit to

Credit to "REST API Design Best Practices Handbook", posted on freecodecamp, you may find the link below. https://www.freecodecamp.org/news/rest-api-design-best-practices-build-a-rest-api/

Since I couldn't find the author's github project link, I decided to create one, with:

  • some unfinished code realised
  • and swagger documentation code rewritten

What you would have on hand

  • Database "clean", feel free to add your favorite database managment tools
  • Filtering, Sorting, Pagination integrated (only for Workout.js)
  • Use data caching for performance improvements, with apicache, redisis an alternative
  • API documentation with Swagger
  • Integrated API access logging middleware with morgan
  • Some other practices might be too specified, not included.

Refs