... | ... | @@ -9,7 +9,8 @@ MacOS is not officially supported. Here are some instructions for developers to |
|
|
1. Install postgresql: `brew install postgresql`
|
|
|
2. Make sure the service is started: `brew services list` and `brew services start postgresql`
|
|
|
3. Open `psql postgres` and create the user and database:
|
|
|
```
|
|
|
|
|
|
```console
|
|
|
$ psql postgres
|
|
|
psql (11.5)
|
|
|
Type "help" for help.
|
... | ... | @@ -28,11 +29,11 @@ CREATE EXTENSION |
|
|
4. (optional) Temporarily store the password in STORK_DATABASE_PASSWORD. Otherwise many of the following steps will ask about it: ```export STORK_DATABASE_PASSWORD=stork```
|
|
|
5. Initialize the DB:
|
|
|
```
|
|
|
backend/cmd/stork-db-migrate/stork-db-migrate init
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate init
|
|
|
```
|
|
|
6. Upgrade the database:
|
|
|
```
|
|
|
backend/cmd/stork-db-migrate/stork-db-migrate up
|
|
|
$ backend/cmd/stork-db-migrate/stork-db-migrate up
|
|
|
```
|
|
|
|
|
|
7. Run the server: ```rake run_server```
|
... | ... | |