Skip to content

Commit

Permalink
Add DB Setup Instructions
Browse files Browse the repository at this point in the history
* Add instructions to make database setup easier.
  • Loading branch information
mzagaja committed Mar 18, 2021
1 parent 3b11475 commit bd85b17
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ cp .env.template .env
open .env
```

### Setup the Database
To setup a local copy of your database you should use a local Postgres instance.
You can set the credentials you want in .env then setup a local database to match.

```sh
createuser -P vaccinatema
# enter password you set in .env DB_CRED_PW
createdb -O vaccinatema vaccinatema_development
psql -U vaccinatema -d vaccinatema_development -f dbschema.sql
```

Then run the server locally.
```sh
npm install
Expand Down

0 comments on commit bd85b17

Please sign in to comment.