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
- Host: GitHub
- URL: https://github.com/webdevcaptain/expressv5-postgres-api-testing
- Owner: WebDevCaptain
- Created: 2025-01-16T04:55:25.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-16T05:53:51.000Z (5 months ago)
- Last Synced: 2025-01-16T06:27:30.218Z (5 months ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```