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 clone
the project thencd
into the directory- run
virtualenv -p /usr/bin/python3 venv
orpython -m venv venv
to create a virtual environment - activate it using
source venv/bin/activate
pip install -r requirements.txt
to 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 mysql
to 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 version
to check if docker is installed - run
docker-compose --version
to check if docker-compose is installed - run
docker-compose up -d --build
to build the docker image of the flask app and mysql database docker images
list the local avaible images- go to http://localhost:8000 to start the container