Start add account endpoint
This commit is contained in:
5
data/dbConfig.js
Normal file
5
data/dbConfig.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const pgp = require('pg-promise')();
|
||||
|
||||
const db = pgp(process.env.DATABASE_URL);
|
||||
|
||||
module.exports = db;
|
||||
5
data/how_to_do_migration.md
Normal file
5
data/how_to_do_migration.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## How to do a migration
|
||||
- Create `.env` to the root folder
|
||||
- Add the database url to the `.env` file:
|
||||
`DATABASE_URL=postgres://username:password@host:port/database`
|
||||
- Run `npm run migrate up`
|
||||
Reference in New Issue
Block a user