NitroLab is the automatic selling drinks machine in which be integrated with RPi.
Server Side API data for POS and User
-
Install PostgreSQL
sudo apt update sudo apt install -y python-pip python3-dev libpq-dev postgresql postgresql-contrib sudo su - postgres psql
-
Now, create a new database and user.
CREATE DATABASE nitro_labs; CREATE USER <USER> WITH PASSWORD '<PASSWORD>'; GRANT ALL PRIVILEGES ON DATABASE nitro_labs TO <USER>;
-
Install python packages
sudo apt install -y virtualenv virtualenv -p python3 venv source venv/bin/activate pip install -r requirements.txt
-
Migrate and create a superuser
python manage.py makemigrations python manage.py migrate python manage.py createsuperuser