Skip to content

Commit 81199be

Browse files
authored
fixed mistake in instructions in README.md file
1 parent 0883ecc commit 81199be

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,31 @@ NEXTAUTH_URL=http://localhost:3000
1616
```
1717
DATABASE_URL="mysql://username:password@localhost:3306/singitronic_nextjs"
1818
```
19-
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:
2020
```
2121
npm install
2222
```
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:
2429
```
2530
npx prisma migrate dev
2631
```
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:
2833
```
2934
cd utills
3035
node insertDemoData.js
3136
```
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:
3338
```
3439
cd ..
3540
node app.js
3641
```
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:
4243
```
4344
npm run dev
4445
```
46+
14. Open [http://localhost:3000](http://localhost:3000) and see it live!

0 commit comments

Comments
 (0)