Skip to content

Commit

Permalink
add: psql connect command to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marktlinn committed Sep 22, 2023
1 parent 36e17d7 commit 1c58d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $ yarn docker:dev
# spin up the Docker testing services (API, Postgres testing DB)
$ yarn docker:test
```
Docker will run in detached mode, meaning it's effectively running in the background, so you can continue using your local terminal as normal whilst interacting with the services running on Docker.
Docker will run in detached mode, meaning it's effectively running in the background, so you can continue using your local terminal as normal whilst interacting with the services running on Docker.

When Docker is running make sure to setup the DB as directed [above](#prismaStudio) from your local terminal (e.g. the terminal integrated into your IDE).

Expand All @@ -130,6 +130,7 @@ Having spun up your Docker services and migrated + seeded your DB your services
- PGAdmin: `4000`
- Prisma Studio: `5555`

As well as connecting to the DB via PGAdmin you can also connect to it directly via the cli if you so choose, just run the following command in your terminal: `psql -h localhost -p 5433 -U chingu -d dashboard` then just enter the `POSTGRES_PASSWORD` from [here](#envfiles)

### <a name="tearDown">Tearing down Docker services<a/>

Expand Down

0 comments on commit 1c58d4f

Please sign in to comment.