trangchongcheng / chating

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Core API

Requirements

docker >= 1.18.0
node = ^12

Setup local infrastructure

$ docker-compose up

Environment

$ cp .env.example .env

Fetch submodules

$ git submodule update --init --recursive

Install dependencies

$ yarn

Migrations

  • Run migrations
$ npm run dbm:run
  • Generate new migration
$ npm run dbm:generate --name=MigrationName

Run app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# Run test
$ npm run test

# Run test watch
$ npm run test:watch

# Run test with coverage
$ npm run test:cov

About


Languages

Language:TypeScript 98.0%Language:Shell 1.2%Language:Dockerfile 0.8%