Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asaarashi/amazing-test
An Amazing Test
https://github.com/asaarashi/amazing-test
Last synced: 25 days ago
JSON representation
An Amazing Test
- Host: GitHub
- URL: https://github.com/asaarashi/amazing-test
- Owner: asaarashi
- Created: 2020-07-16T09:24:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T04:43:21.000Z (almost 4 years ago)
- Last Synced: 2024-12-23T13:54:40.681Z (28 days ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amazing Test
An amazing test.## Requirements
* Python 3.6
* Flask (For installing Flask and virtual env, please refer to https://flask.palletsprojects.com/en/1.1.x/installation/)
* Write permission for the project directory (for storing database file)## Installation and run
In the project directory, you can run:Enter the virtual environment,
#### `. venv/bin/activate`
And then install dependencies,
#### `pip install -r requirements.txt`### Start the API server
Execute the following commands to run the app:
#### `export FLASK_APP=app.py`
#### `flask run`
Open [http://localhost:5000](http://localhost:5000) in the browser, if it displays "Hello world!", the server is ready.
### Publish and subscribe via MQTT
Startup the subscriber process,
#### `python subscribe.py`
And then open another terminal to publish a row of test data,
#### `python publish_test_data.py`## Powered by
* Flask
* marshmallow
* flask-marshmallow
* TinyDB