Skip to content

aeternity/dex-backend

Repository files navigation

Description

Dex-Backend

Installation

$ npm install

Database

# after any schema definition change run
$ npm install

# or

$ npx prisma generate

Container

# to deploy
npm run db:deploy

# to stop container
npm run db:stop

#to remove / reset container (this helps to erase db also)
npm run db:remove

#if you want to run the container into interactive mode
npm run db

#WARNING: if container runs in interactive mode for the first time run from other terminal :
$ npm run db:push-schema

Running the app

# development
$ npm run serve

# watch mode
$ npm run serve:dev

# debug mode
$ npm run serve:debug

# production mode
$ npm run build
$ npm run serve:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov