migrated from sqlite to postgres

This commit is contained in:
Joe Arndt 2026-02-09 14:51:04 -06:00
parent 6600745072
commit 8e7016d15c
5 changed files with 341 additions and 64 deletions

View file

@ -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