File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,22 @@ cd daily-code
15
15
yarn install
16
16
```
17
17
18
- > Setup DB
19
-
18
+ > Setup DB
20
19
For Mac and Linux users
21
20
```
22
21
cd packages/db
23
22
chmod +x ./setupDB.sh
24
23
./setupDB.sh
25
24
```
26
25
27
- For Windows users
26
+ For Windows users (using docker to start db locally)
28
27
```
29
28
cd packages/db
29
+ copy .env.example .env
30
+ docker-compose up
31
+
32
+ now, write the connection string in DATABASE_URL
33
+
30
34
yarn prisma migrate dev
31
35
yarn prisma db seed
32
36
```
Original file line number Diff line number Diff line change 1
1
2
2
DATABASE_URL = " postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
3
3
4
- REDIS_URL = " "
5
4
6
5
CACHE_EXPIRE = 1800
Original file line number Diff line number Diff line change @@ -14,6 +14,5 @@ services:
14
14
- 100xdevs:/data/postgres
15
15
restart : unless-stopped
16
16
17
-
18
17
volumes :
19
18
100xdevs:
You can’t perform that action at this time.
0 commit comments