An open API service indexing awesome lists of open source software.

https://github.com/webdevcaptain/expressv5-postgres-api-testing

Sample to try express v5 with pg and supertest
https://github.com/webdevcaptain/expressv5-postgres-api-testing

Last synced: 3 months ago
JSON representation

Sample to try express v5 with pg and supertest

Awesome Lists containing this project

README

        

## Commands

1. To create books table migration file

```bash
npm run migrate create add books table
```

2. Edit the migration file with some custom logic for up & down

3. Run the migration using

```bash
DATABASE_URL=postgres://:@localhost:5432/ npm run migrate up
```