@@ -38,10 +38,14 @@ docker compose up -d
3838
3939To run the backend application, you can either:
4040
41- * From the ` backend ` directory, run ` ./gradlew bootRun ` in the terminal to us Gradle CLI
41+ * Start application from the terminal:
42+ ``` bash
43+ cd backend
44+ ./gradlew bootRun
45+ ```
4246* Run the ` CourseHubApplication ` main class from your IDE.
4347
44- Now you can access the CourseHub frontend UI on ` http://localhost:80 ` and the backend API on ` http://localhost:8080 ` .
48+ Now you can access the CourseHub frontend UI on ` http://localhost:3000 ` and the backend API on ` http://localhost:8080 ` .
4549
4650### Making requests
4751
@@ -55,35 +59,35 @@ You can also see all available endpoints in the [OpenAPI documentation](http://l
5559
5660### Running the frontend
5761
58- By default, the frontend will be running on ` http://localhost:80 ` from Docker compose. If you want to run it
62+ By default, the frontend will be running on ` http://localhost:3000 ` from Docker compose. If you want to run it
5963locally, follow the steps below.
6064
6165To install the required dependencies (only once), from the ` frontend ` directory, run:
62-
63- ``` bash
66+ ``` bash
67+ cd frontend
6468npm install
6569```
6670
6771To run the frontend application locally, from the ` frontend ` directory, run:
68-
6972``` bash
73+ cd frontend
7074npm run dev
7175```
7276
7377Now you can access the CourseHub frontend UI on ` http://localhost:5173 ` in development mode.
7478
7579### Building docker images
7680
77- To build a Docker image of the course-hub backend, run the following command:
78-
81+ To build a Docker image of the course-hub backend, from the ` backend ` directory, run:
7982``` bash
83+ cd backend
8084./gradlew bootBuildImage
8185```
8286
8387To build a Docker image for the frontend, from the ` frontend ` directory, run:
84-
8588``` bash
86- docker build -t ghcr.io/hackyourfuture/course-hub-frontend frontend
89+ cd frontend
90+ docker build -t ghcr.io/hackyourfuture/course-hub-frontend .
8791```
8892
8993#### Running docker image
@@ -92,7 +96,7 @@ After the image is built, you can run it using a special Docker Compose profile
9296you're running it from Gradle or IDE)_ :
9397
9498``` bash
95- docker compose --profile include-course-hub up
99+ docker compose up -d
96100```
97101
98102### Cleanup
@@ -101,5 +105,5 @@ Keep in mind that containers will keep running in the background even after you
101105the containers, run:
102106
103107``` bash
104- docker compose --profile include-course-hub down -v
108+ docker compose down -v
105109```
0 commit comments