This repository is created a reference for node project structure.
- Nodejs
git clone [email protected]:endrureza/node-structure.git
cd node-structure
yarn install
yarn dev
All API logic, model relation and middleware should go to this folder
All configuration regarding application should go to this folder
All migration script and seeder go to this folder
All job or queue script go to this folder
All endpoint or routing should go to this folder
All third party services configuration or setting should go to this folder
All test mechanism should go to this folder
All imported library that is not exposed to outside of package should go to this folder
This file must be included in server.js
to run as it provides all activity for fastify and for testing purpose too.
This file will be the main to execute / run application
All route documentation should go to this file
- Endru Reza (Linkedin)