This is an IoT platform developped using flask where people can veiw the temperature, humidity and gaz state
Some photos about this project:
This app is designed to run in different ways:
- As a standalone app running on your machine
- As a Docker container running on your machine
- install python
git clonethe project thencdinto the directory- run
virtualenv -p /usr/bin/python3 venvorpython -m venv venvto create a virtual environment - activate it using
source venv/bin/activate pip install -r requirements.txtto install the app libaries and it dependencies
- you need to have mysql server installed in your machine, if you are working in linux just typr
sudo apt-get update && apt-get install mysql-server - type
sudo mysqlto enter to the database - .....
After installing, run the server using flask run
Access the running app in a browser at the URL written to the console (most likely http://localhost:5000)
- install Docker
- install Docker compose toolset
- run
docker versionto check if docker is installed - run
docker-compose --versionto check if docker-compose is installed - run
docker-compose up -d --buildto build the docker image of the flask app and mysql database docker imageslist the local avaible images- go to http://localhost:8000 to start the container




