- NodeJS >= 12.x.x
- Docker Image
- .env file
Run the npm install
command
$ npm install
Copy the .env.sample
file to ./.env
$ cp .env.sample ./.env
Build the docker image
$ docker build -t user-api:latest .
Run the docker container
$ docker-compose up -f docker-compose.yml
Run the command as below
# lint
$ npm run lint
# type check
$ npm run type-check
# start
$ npm start
src
├── common
│ ├── config
│ ├── types
│ └── utils
├── data
├── domain
│ ├── entity
│ └── usecase
├── infrastructure
│ ├── grpc-caller
│ ├── mali
│ └── typeorm
└── web
│ ├── grpc
│ └── request
test
├── integration
│ └── grpc
└── unit
├── data
└── domain