A simple and lightwight template to build an Internet of Things (IoT) application using Flask and MySQL. It also can be used to build a live RESTful API to deploy on raspberry pi.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
Python
Virtual Environment
Your IDE
Check the followings to learn basic concepts about:
The final file structure for the .
iot-flask-template
├── app.py
├── devices.py
├── README.md
├── requirments.txt
├── templates
│ ├── about.html
│ ├── dashboard.html
│ ├── home.html
│ ├── includes
│ │ ├── _formhelpers.html
│ │ ├── _messages.html
│ │ └── _navbar.html
│ ├── layout.html
Follow the steps below to get a development env up and running in a ubuntu(linux).
- Go to your main project folder.
$ cd <path-to-the-folder>
- git clone the repository.
$ git clone [email protected]:cognitiveRobot/flask-robot-control-template.git
- Go inside the cloned folder.
$ cd flask-robot-control-template
- Create a Virtual Environment
$ python3 -m venv venv
- Activate the Virtual Environment
$ souce venv/bin/activate
- Upgrade the pip
$ pip install --upgrade pip
- Install all python packages
$ pip install -r requirments.txt
- If everything goes well up to now, then you would be able to quickly run the app.
$ python app.py
If all good so far, then follow next to know how to integrate the database for this app. If not, they raise an issue, I will reply asap.
Comming soon.
- Python - For Server Side Program
- Flask - For Webapp Framework
- Materialize - For Front End
Make the pull request.
For now please See the tags
- Zulfikar Hossain - Initial work - CognitiveRobot
- Maybe you
This project is licensed under the MIT License - see the LICENSE.md file for details
- Brad Traversy - For the initial code.
- Billie Thompson - For the this readme file template.