Core Tech: Python
Backend Service: Django, Django Rest Framework, MQTT
Database: SQLite
Documentation: Swagger
- Integrate Mqtt publising and subscribing system
- Device and Broker management
- Supports pagination system
Clone the project
git clone https://github.com/koksalkapucuoglu/django-mqtt-app.gitGo to the project directory
cd django-mqtt-appCreate python env
python -m venv envActivate enviroment
source env/Scripts/activateor
env\Scripts\activateInstall requirements
pip install -r requirements.txtDetect django model changes
python manage.py makemigrationsApply django model changes
python manage.py migrateRun django project
python manage.py runserverRun django project
python manage.py runserverOpen new terminal and activate enviroment
env/Scripts/activateNavigate mqtt_server directory
cd mqtt_serverRun subscribe2django script
python subscribe2django.pyOpen new terminal and activate enviroment
env/Scripts/activateNavigate mqtt_server directory
cd mqtt_serverRun publish_payload2django script
python publish_payload2django.py- Go to http://localhost:8000/api/swagger to see Swagger documentation for API endpoints.
- Run the APIs by clicking the "Try it now" button on the Swagger page.