Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 3d0aff0

Browse files
authored
Merge branch 'main' into docs/nodejs-dotnet-removal
2 parents bedba82 + b5f430c commit 3d0aff0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/tutorials/react-todos/step-002.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -188,20 +188,25 @@ Make sure that you replace `first-service` with the name of the service that you
188188

189189
By doing this the Todo app UI will now run on port `5000` during development so it won't conflict with Amplication's default port for the server (which is `3000`).
190190

191-
We've also set the start to script to run our frontend and backend code at the same time.
191+
We've also set the `start` script to run our frontend and backend code at the same time.
192192

193-
5. Before starting the server there are a few additional steps required. Read `server/README.md` for directions to:
193+
6. Before starting the server there are a few additional steps required. Read `server/README.md` for directions to:
194194

195195
- Create a Prisma client
196196
- Start a database in Docker
197197
- Initiate the database
198198

199-
6. When those steps have been completed run the following command:
199+
7. When those steps have been completed run the following command:
200200

201201
```bash
202202
npm run start
203203
```
204204

205+
> **Note:** If you encounter an error indicating that port `5000` is already in use, it means another software may be using the port, causing a conflict. This issue can be resolved by changing the port used for the frontend in `package.json`. Update the start script for the frontend to use a different port, for instance:
206+
> ```json
207+
> "start:frontend": "cross-env PORT=5001 npm --prefix web start",
208+
> ```
209+
205210
## Step 8 - Wrap Up
206211
207212
The frontend of the Todo app will be running at [http://localhost:5000/](http://localhost:5000/), and the backend will be running at [http://localhost:3000/](http://localhost:3000/).

0 commit comments

Comments
 (0)