Skip to content

React | Springboot | JUnit | AWS | Github Actions

Notifications You must be signed in to change notification settings

Arabasta/Mini-Coin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

React | Springboot | AWS | Github Actions

This project consists of a frontend React application deployed on S3 and a Spring Boot backend API deployed on EC2

Deployment

Frontend

The frontend React application is automatically deployed to S3 using GitHub Actions. The workflow is defined in .github/workflows/cd_react_frontend.yml.

Backend

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.


Frontend

The frontend React application is deployed on S3 and can be accessed here: NO LONGER HOSTING

Backend

The backend Spring Boot API can be tested with the following endpoint: NO LONGER HOSTING


Example Request

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]
}

Example Response

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
    ]
}

Docker

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

About

React | Springboot | JUnit | AWS | Github Actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published