Skip to content

Commit 0883ecc

Browse files
authored
Update README.md
1 parent ae0138f commit 0883ecc

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,25 @@ DATABASE_URL="mysql://username:password@localhost:3306/singitronic_nextjs"
2020
```
2121
npm install
2222
```
23-
9. Next is to insert demo data. To do it you need to go to the server/utills folder and call insertDemoData.js:
23+
9. You will need to run the Prisma migration. Make sure you are in the server folder and write:
24+
```
25+
npx prisma migrate dev
26+
```
27+
10. Next is to insert demo data. To do it you need to go to the server/utills folder and call insertDemoData.js:
2428
```
2529
cd utills
2630
node insertDemoData.js
2731
```
28-
10. Now you can go back to the server folder and run the backend:
32+
11. Now you can go back to the server folder and run the backend:
2933
```
3034
cd ..
3135
node app.js
3236
```
33-
11. While your backend is running you need to open another terminal(don't stop the backend). In the second terminal, you need to make sure you are in your root project folder and write the following:
37+
12. While your backend is running you need to open another terminal(don't stop the backend). In the second terminal, you need to make sure you are in your root project folder and write the following:
3438
```
3539
npm install
3640
```
37-
12. After everything is installed, you need to run the Next.js application:
41+
13. After everything is installed, you need to run the Next.js application:
3842
```
3943
npm run dev
4044
```

0 commit comments

Comments
 (0)