Skip to content

Commit

Permalink
Update writeup with new .env files
Browse files Browse the repository at this point in the history
  • Loading branch information
wllmwu committed Nov 3, 2023
1 parent d4118b8 commit 2ab44e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion writeup/part-0/0-2-Clone.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ You should now have a copy of all the starter code in the folder you selected.
We're almost ready to run the project for the first time! Before we can do that, we just need to add some environment variables required by the code.

1. Open the repo in VS Code (File > Open Folder, then select the root folder of the repo). In the `backend` folder, create a new file named `.env`.
2. Paste the following into the .env file:
2. Paste the following into the `.env` file:
```
PORT=3001
MONGODB_URI="mongodb://127.0.0.1:27017/todoList"
FRONTEND_ORIGIN="http://localhost:3000"
```
3. Create another `.env` in the `frontend` folder:
```
REACT_APP_API_BASE_URL="http://localhost:3001"
```

<details>
Expand Down

0 comments on commit 2ab44e5

Please sign in to comment.