migrated from sqlite to postgres
This commit is contained in:
parent
6600745072
commit
8e7016d15c
5 changed files with 341 additions and 64 deletions
21
README.md
21
README.md
|
|
@ -7,27 +7,14 @@ $ npm install
|
|||
```
|
||||
|
||||
## Compile and run the project
|
||||
Run local Postgres DB:
|
||||
```bash
|
||||
# development
|
||||
$ npm run start
|
||||
|
||||
# watch mode
|
||||
$ npm run start:dev
|
||||
|
||||
# production mode
|
||||
$ npm run start:prod
|
||||
docker run --name common-cents-db -e POSTGRES_USER=common-cents -e POSTGRES_PASSWORD=CommonCents_123! -p 5432:5432 -d postgres
|
||||
```
|
||||
|
||||
## Run tests
|
||||
Then run the API:
|
||||
```bash
|
||||
# unit tests
|
||||
$ npm run test
|
||||
|
||||
# e2e tests
|
||||
$ npm run test:e2e
|
||||
|
||||
# test coverage
|
||||
$ npm run test:cov
|
||||
npm run start:dev
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue