File tree 1 file changed +15
-15
lines changed
1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
# Quick Setup Locally
2
2
3
- * Docker
3
+ ## Option 1: Using Docker
4
4
5
- ```
5
+ ``` bash
6
6
docker compose watch
7
7
```
8
8
9
- OR
10
-
11
- > Install the Dependencies
9
+ ## Option 2: Manual Setup
12
10
13
- ```
11
+ ### 1. Install Dependencies
12
+ ``` bash
14
13
cd daily-code
15
14
yarn install
16
15
```
17
16
18
- > Setup DB
19
- For Mac and Linux users
20
- ```
17
+ ### 2. Setup Database
18
+
19
+ #### For Mac and Linux users
20
+ ``` bash
21
21
cd packages/db
22
22
chmod +x ./setupDB.sh
23
23
./setupDB.sh
24
24
```
25
25
26
- For Windows users (using docker to start db locally)
27
- ```
26
+ #### For Windows users
27
+ ``` bash
28
28
cd packages/db
29
29
copy .env.example .env
30
30
docker-compose up
31
31
32
- now, write the connection string in DATABASE_URL
32
+ # Configure the database connection
33
+ # Add your connection string to DATABASE_URL
33
34
34
35
yarn prisma migrate dev
35
36
yarn prisma db seed
36
37
```
37
38
38
- > Run locally
39
-
40
- ```
39
+ ### 3. Run Locally
40
+ ``` bash
41
41
cd ../..
42
42
yarn run dev
43
43
```
You can’t perform that action at this time.
0 commit comments