Skip to content

Commit

Permalink
Update README (#284)
Browse files Browse the repository at this point in the history
Update the readme with instructions for running the application locally
and seeding a self-hosted Postgres database.
  • Loading branch information
ChinemeremChigbo authored and leogjhuang committed Apr 29, 2023
1 parent 31e0466 commit 52db422
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,40 @@ applicant-facing application portal and an internal user/APP management portal.

## Run locally

1. Start database

```bash
docker-compose up --build
```

2. Run the application

```bash
yarn install
npx prisma generate
yarn dev
```

3. Deploy prisma schema

```bash
npx prisma db push
```

4. Seed database

```bash
npx prisma db seed --preview-feature
```

5. Verify database

```bash
docker exec -it rcd_db /bin/bash -c "psql -U postgres -d rcd"
```

## Run locally (Heroku)

Duplicate `.env.sample` to `.env` and configure environment variables.

To deploy your database schema, run:
Expand Down

0 comments on commit 52db422

Please sign in to comment.