To run this project, the following pre-requisites are needed:
- Docker (or a similar container runtime)
NOTE: all of the following commands are assumed to be executed from the same path as this readme file.
cd src/backend-placeholder
docker build -t svar-o-matic-backend -f backend-placeholder/Dockerfile .
cd src/frontend-placeholder
docker build -t svar-o-matic-frontend -f Dockerfile .
To run backend image as a container, run the following command and access it from http://localhost:1080/WeatherForecast
:
docker run -d -p 1080:80 svar-o-matic-backend
docker run -d -p 3000:3000 svar-o-matic-frontend
To automatically build everything and run all images, run the following command and access frontend at http://localhost:3000
and backend at http://localhost:10080/WeatherForecast
:
docker compose up -d
docker compose down