This project consists of a frontend React application deployed on S3 and a Spring Boot backend API deployed on EC2
The frontend React application is automatically deployed to S3 using GitHub Actions. The workflow is defined in .github/workflows/cd_react_frontend.yml
.
The backend Spring Boot application is built and pushed to Docker Hub then deployed to EC2 using GitHub Actions. The workflow is defined in .github/workflows/cd_spring_backend.yml
.
The frontend React application is deployed on S3 and can be accessed here: NO LONGER HOSTING
The backend Spring Boot API can be tested with the following endpoint: NO LONGER HOSTING
To test the coin change API, you can send a POST request to the backend with the following JSON body:
{
"amount": 7.01,
"denominations": [0.1, 0.5, 0.01, 1, 5, 10]
}
The API will respond with the minimum number of coins needed to make the given amount.
{
"coins": [
0.01,
1.0,
1.0,
5.0
]
}
The Docker image for the Spring Boot backend is available at:
keiyam/oracle_spring_backend/70cb26df570de4f56f22738ad970308986904e1a
You can pull and run the Docker image using the following commands:
docker pull keiyam/oracle_spring_backend:70cb26df570de4f56f22738ad970308986904e1a
docker run -d -p 8080:8080 keiyam/oracle_spring_backend:70cb26df570de4f56f22738ad970308986904e1a
On arm64 (Apple Silicon Macs)
docker run --platform linux/amd64 -d -p 8080:8080 keiyam/oracle_spring_backend:70cb26df570de4f56f22738ad970308986904e1a