This is simple full-stack application featuring a React frontend and a Spring backend, containerized using Docker with a simple reverse proxy server on NGINX.
- NGINX listens for incoming connections on port 80, so it can be accessed on
http://localhost
- Requests for path
localhost/
are routed to the frontend service - Requests for path
localhost/api/
are routed to backend service localhost/api/date-service
returns the current datetime for Seoullocalhost/api/number-service
returns a random number- Frontend listens on
localhost:3000
- Number service is listening on
localhost:8080
and date service is listening onlocalhost:8081
You need to install:
then just open your terminal and run these commands:
git clone https://github.com/saprunovdev/wpg.git
cd wpg
docker-compose up
On mac run docker-compose up again, after you get an error
docker-compose up