To get started with this project, follow these steps:
- Clone the repository:
git clone [email protected]:tiffany831101/assignment.git`
- Change into the project directory:
cd assignment
- Build the Docker image:
docker build -t exchange_rate .
- Run the docker container:
docker run -d -p 8080:3000 --name exchange_rate_container exchange_rate
- Open your browser Tab:
- Enter the url: http://localhost:8080/exchangeRate?source=TWD&target=JPY&amount=$1234.12
- You can see the results as:
{ "msg": "Success", "amount": "$4,527.99" }
- Run the unit test:
docker exec -it exchange_rate_container npm run test