Skip to content

iamnovichek/menu-manager-API

Repository files navigation

Installation

Creating and Activating a Virtual Environment

  python3 -m venv django
  source django/bin/activate
  pip3 install -r requirements.txt

Installation postgresql-server and creating a database

  sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
  wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
  sudo apt-get update
  sudo apt-get install postgresql

Creating a new user

  sudo -u postgres psql
  CREATE ROLE admin WITH LOGIN PASSWORD 'password';

Creating a new database

  sudo -i -u postgres
  psql
  CREATE DATABASE menu;

Creating migrations

  python3 manage.py makemigrations
  python3 manage.py migrate

Creating a superuser

  python3 manage.py createsuperuser

Finally:

  python3 manage.py runserver

About

Simple CRUD API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published