So, Raspberry Pi will get temeprature data from it's sensor and it will be sent to backend.
npm i
Cors-headers package allows you to whitelist urls that you want to access your API, full documantation
pip install django-cors-headers
pip install Django
pip install djangorestframework
Simple JWT is a JSON Web Token authentication plugin for the Django REST Framework, full documantation
pip install djangorestframework-simplejwt
Django channels is a third-party application that provides a usefull set of tools to create WebSocket connection for real time communication, full documantaion
pip install django-channels
Package for the temperature sensor
pip install w1thermsensor
If you want to run this project on your local machine, You should start you Django server like this:
python manage.py runserver 0.0.0.0:8000
Username for admin is piotrexx and you can change password like this:
python manage.py changepassword piotrexx
Remember to use all python commands in backend folder.
And all npm commands in frontend folder.