Skip to content

Base on awilix-koa(Rest), mali(gRPC), typeorm(MySQL), ioredis(Redis)

Notifications You must be signed in to change notification settings

eusoumaxi/boilerplate-api

 
 

Repository files navigation

Boilerplate API


Main modules


Playing locally

  • NodeJS >= 12.x.x
  • Docker Image
  • .env file

Ready

Run the npm install command

$ npm install

Copy the .env.sample file to ./.env

$ cp .env.sample ./.env

Running with docker

Build the docker image

$ docker build -t user-api:latest .

Run the docker container

$ docker-compose up -f docker-compose.yml

Running with Local

Run the command as below

# lint
$ npm run lint

# type check
$ npm run type-check

# start
$ npm start

Project structure

src
├── common
│   ├── config
│   ├── types
│   └── utils
├── data
├── domain
│   ├── entity
│   └── usecase
├── infrastructure
│   ├── grpc-caller
│   ├── mali
│   └── typeorm
└── web
│   ├── grpc
│   └── request
test
├── integration
│   └── grpc
└── unit
    ├── data
    └── domain

About

Base on awilix-koa(Rest), mali(gRPC), typeorm(MySQL), ioredis(Redis)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • Dockerfile 2.4%
  • Shell 1.3%