Codebase / boilerplate with DDD (Domain Driven Development) and Command–query separation (CQRS) based on nodeJS
Framework : ExpressJS
Clone This Repository
git clone https://github.com/2pai/codebase-2pai.git
Install Package
npm install
Clone .env file from .env.example and edit
cat .env.example >> .env
Generate Public And Private Key
ssh-keygen -t rsa -b 4096 -m PEM -f private.pem
openssl rsa -in private.pem -pubout -outform PEM -out public.pub
Start The Server
npm start
Run Test
npm run test
Run ESLint to fix code
npm run eslint:fix
Log
Winston
Auth
Basic Auth
JWT Token
Database
MongoDB
Test
Unit Test
Integration Test
Author
© Muhammad Iqbal Syamil ayasy