Skip to content

crazy-djactor/nitro_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NitroLabsAPI

NitroLab is the automatic selling drinks machine in which be integrated with RPi.

Server Side API data for POS and User

Installation

  • 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

About

Back end of Nitro Lab by Django-Rest AP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages