There are two ways the web-app can be deployed on the host machine. Either docker container can be deployed or web-app can be started after building project from the source.
If docker is not installed follow this link.
- Execute startup script.
bash start.sh
The script first checks if docker image is locally available. If not, image is pulled from the docker hub.
If any error is encountered during docker deployment, follow the following steps:
-
Fetch docker image for the project:
docker pull t6nand/group07-co2
-
Deploy container:
docker run -d -p 8050:8050 t6nand/group07-co2
1: Setup virtual environment.
python3 -m venv ./venv
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Start the web-app
python src/app.py
Server is then available at http://127.0.0.1:8050
Requires Python 3.5+
python src/app.py
http://127.0.0.1:8050/