Skip to content
Snippets Groups Projects
Commit 1380a68c authored by Matt Grau's avatar Matt Grau
Browse files

create flask server

parent 34e7c2d0
No related branches found
No related tags found
No related merge requests found
......@@ -24,4 +24,10 @@ $ ~/tiqi-js-tutorial/demo_venv/bin/python
```bash
mkdir device
touch device/__init__.py
```
## Create Flask server
```bash
pip install flask
```
\ No newline at end of file
import flask
app = flask.Flask(__name__)
@app.route('/')
def main():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment