This repo is used for a hitloop project. Most folders are just testing stuff and should be removed. The ThingSpeak_BLE_scan file looks for BLE devices and sends the data to thingspeak. The iBeacons file is used for the eggs that send BLE information.
This project uses Docker and Docker Compose to manage the web application and documentation services.
Services:
docs: Serves the project documentation using MkDocs.- Builds from
Dockerfilein the project root. - Accessible at
http://localhost:8000. - Live reloads on changes to documentation files.
- Builds from
webserver: Runs the main web application.- Builds from
Webserver/Dockerfile. - Accessible at
http://localhost:5000. - Live reloads on changes to web application files in the
Webserverdirectory.
- Builds from
Commands:
-
Build and run all services: This command builds and starts all services. Ports are mapped to localhost as detailed in the 'Services' section (e.g.,
docsathttp://localhost:8000,webserverathttp://localhost:5000).docker compose up --build
-
Build and run only the documentation service: This command starts the
docsservice, accessible athttp://localhost:8000.docker compose up --build docs
-
Build and run only the webserver service: This command starts the
webserverservice, accessible athttp://localhost:5000.docker compose up --build webserver
-
Stop and remove containers:
docker compose down
(Or press
Ctrl+Cin the terminal wheredocker-compose upis running)
pip install -r requirements.txtflask --app Webserver/run.py run --host=0.0.0.0