Skip to content

Commit c0f0567

Browse files
Merge branch 'main' into main
2 parents 41685d0 + b7b68a9 commit c0f0567

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,22 @@ cd daily-code
1515
yarn install
1616
```
1717

18-
> Setup DB
19-
18+
> Setup DB
2019
For Mac and Linux users
2120
```
2221
cd packages/db
2322
chmod +x ./setupDB.sh
2423
./setupDB.sh
2524
```
2625

27-
For Windows users
26+
For Windows users (using docker to start db locally)
2827
```
2928
cd packages/db
29+
copy .env.example .env
30+
docker-compose up
31+
32+
now, write the connection string in DATABASE_URL
33+
3034
yarn prisma migrate dev
3135
yarn prisma db seed
3236
```

packages/db/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
33

4-
REDIS_URL=""
54

65
CACHE_EXPIRE=1800

packages/db/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ services:
1414
- 100xdevs:/data/postgres
1515
restart: unless-stopped
1616

17-
1817
volumes:
1918
100xdevs:

0 commit comments

Comments
 (0)