Skip to content

Commit 645e3a5

Browse files
authored
docs: adds step to start database in README (#805)
Signed-off-by: Anthony D. Mays <anthony@morganlatimer.com>
1 parent 6750964 commit 645e3a5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/javascript/fullstack_demo/.env.example.postgres

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=Your Next Public Clerk Publishable Key here
22
CLERK_SECRET_KEY=Your Clerk Secret Key here
33
DB_TYPE=postgres
44
NEXT_PUBLIC_API_URL=http://localhost:3000
5-
DATABASE_URL=Your Postgres connection pooling database URL
6-
DIRECT_URL=Your Postgres direct database URL
5+
DATABASE_URL=postgresql://postgres:password@localhost:5432/fullstack_db
6+
DIRECT_URL=postgresql://postgres:password@localhost:5432/fullstack_db

lib/javascript/fullstack_demo/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ This project demonstrates a fully working task management app built using NextJS
66

77
## Running the app
88

9-
To run the app, copy the [.env.example](./.env.example) file as `.env` and setup the Clerk keys by setting up an account at https://clerk.dev. Once done, you can start up the local dev server with the following commands:
9+
To run the app, copy the [.env.example.postgres](./.env.example.postgres) file as `.env` and setup the Clerk keys by setting up an account at https://clerk.dev. Once done, you can start up the local dev server with the following commands:
1010

1111
```bash
1212
npm install
13+
npm run db:start
1314
npm run dev
1415
```
1516

0 commit comments

Comments
 (0)