Skip to content

codebase / boilerplate with design pattern DDD + CQRS based on nodejs

License

Notifications You must be signed in to change notification settings

2pai-dev/codebase-2pai

 
 

Repository files navigation

codebase-2pai

Codebase / boilerplate with DDD (Domain Driven Development) and Command–query separation (CQRS) based on nodeJS

Framework : ExpressJS

Instalation

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

Private Key
ssh-keygen -t rsa -b 4096 -m PEM -f private.pem
Public Key
openssl rsa -in private.pem -pubout -outform PEM -out public.pub


Usage

Start The Server

npm start

Run Test

npm run test

Run ESLint to fix code

npm run eslint:fix

Feature

Log

Winston

Auth

Basic Auth
JWT Token

Database

MongoDB

Test

Unit Test
Integration Test

Author

© Muhammad Iqbal Syamil ayasy

About

codebase / boilerplate with design pattern DDD + CQRS based on nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Dockerfile 1.5%