Skip to content

Instantly share code, notes, and snippets.

@Rishabh570
Created April 19, 2022 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rishabh570/846de0ea32546bcf76e01fedaacfc418 to your computer and use it in GitHub Desktop.
Save Rishabh570/846de0ea32546bcf76e01fedaacfc418 to your computer and use it in GitHub Desktop.
Final project structure of our express API, with all the unit tests and respective modules in place.
- src
-- controllers
---- item.controller.js
---- health.controller.js
-- models
---- item.model.js
-- routes
---- index.js
---- item.route.js
---- health.route.js
-- tests
---- health.spec.js
---- item.spec.js
---- model.spec.js
---- routes.spec.js
-- app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment