- Clone repository
$ git clone git@github.com:justmavi/kersan-back.git
$ cd kersan-back
- Install packages with
yarn
$ yarn install
- Clone
.env.example
file into.env
$ cp .env.example .env
- Delete old sources
$ yarn prebuild
- Build the app
$ yarn build
- Run docker containers
$ docker-compose up --build -d
- Run migrations
$ yarn migrate:run
- Run application
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
For debug mode just press F5
. App will start automatically by launch.json
configurations.
Recommended to use Visual Studio Code.
Necessarily setup Prettier and ESLint.
Check guide: Config ESLint and Prettier in Visual Studio Code.
- Author - Grish Poghosyan