- **Install [Node]
- Clone this repository. -
git clone https://github.com/hassanajazch/nodejs-microservice-boilerplate.git
- Install Node Packages. -
npm install
- Run the app for development. -
npm run dev
- Create and build app for production. -
npm start
Boilerplate for Node.js applications.
- Sequelize ORM for MySQL queries
- dotenv for loading env variables
- ESM and Babel for using ES6 features
- JEST for testing
- Separate app and server
- Usage of patterns [factories and adapters]
- Separate route and controller file for different categories
- keep all business logic in src/app folder
- Single Responsibility
- Use eslint to maintain code standards
- Use prettier to keep code format same across all team
- Use proper naming convention (No use of result, abc named variables)
- Use all ES6 features
- Use JEST for testing
- Use AAA pattern for writing your tests