Skip to content

Commit 6cafcc8

Browse files
authored
Update README.md
1 parent a79c7e2 commit 6cafcc8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,31 @@ To get started, download this code to your machine
1515

1616
## Run the Application
1717

18-
To run the application, run the following terminal commands after launching Docker:
18+
To run the application, launch Docker (by opening the app) and run the following terminal commands:
1919

2020
```shell
2121
docker-compose down
2222
docker-compose build
2323
docker-compose up
2424
```
2525

26-
Code changes will automatically cause the website and server code to reload
26+
When you run these commands, you will need to be in the `gt-webdev-activity-2-starter-code` directory.
27+
28+
If you get an error that says, "docker-compose: command not found", you may have to run the following commands instead:
29+
```shell
30+
docker compose down
31+
docker compose build
32+
docker compose up
33+
```
34+
35+
If you get an error that says, "permission denied", you may need to run the commands using "sudo" (if you are on Mac or Linux). In other words, the following commands:
36+
```shell
37+
docker-compose down
38+
sudo docker-compose build
39+
sudo docker-compose up
40+
```
41+
42+
The React application should then be hosted on `http://localhost:3000`, which you can see in your browser. Code changes will automatically cause the website and server code to reload
2743

2844
## Troubleshooting
2945

0 commit comments

Comments
 (0)