You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8. Now you need to open your terminal of choice in the server folder of the project and write:
19
+
8. Now you need to open your terminal of choice in the root folder of the project and write:
20
20
```
21
21
npm install
22
22
```
23
-
9. You will need to run the Prisma migration. Make sure you are in the server folder and write:
23
+
9. Now you need to navigate with the terminal in the server folder and install everything:
24
+
```
25
+
cd server
26
+
npm install
27
+
```
28
+
10. You will need to run the Prisma migration now. Make sure you are in the server folder and write:
24
29
```
25
30
npx prisma migrate dev
26
31
```
27
-
10. Next is to insert demo data. To do it you need to go to the server/utills folder and call insertDemoData.js:
32
+
11. Next is to insert demo data. To do it you need to go to the server/utills folder and call insertDemoData.js:
28
33
```
29
34
cd utills
30
35
node insertDemoData.js
31
36
```
32
-
11. Now you can go back to the server folder and run the backend:
37
+
12. Now you can go back to the server folder and run the backend:
33
38
```
34
39
cd ..
35
40
node app.js
36
41
```
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:
38
-
```
39
-
npm install
40
-
```
41
-
13. After everything is installed, you need to run the Next.js application:
42
+
13. 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:
42
43
```
43
44
npm run dev
44
45
```
46
+
14. Open [http://localhost:3000](http://localhost:3000) and see it live!
0 commit comments