This repository contains the code and instructions for setting up a learning project based on the Codeching YouTube videos. The project combines Docker, React, Spring Boot, and Nginx to create a full-stack web application.
Before getting started, make sure you have the following installed:
- Docker Desktop For Windows or Docker
- Node.js
- Java Development Kit (JDK)
- Maven
Follow the steps below to set up the project:
-
Clone the repository:
git clone https://github.com/calebjeffery/DockerReactAndSpringbootNginxApp.git
-
Change into the project directory:
cd DockerReactAndSpringbootNginxApp
-
Build the React frontend:
cd springbootreact npm install npm run build
-
Build the Spring Boot backend:
cd ../springtest mvn clean install
-
Build the Docker images and start the containers:
cd .. docker-compose -f .\docker-compose.yaml up --build
This command will build and run the Docker containers for the frontend, backend, and Nginx.
-
Once the containers are up and running, you can access the application in your web browser at http://localhost:3000.
- Codeching YouTube Videos:
This project is licensed under the MIT License.