voidnowhere / RestaurantReviewsAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restaurant Reviews API & Restaurant Reviews WEB

Architecture

architecture


Clone repository

git clone https://github.com/voidnowhere/RestaurantReviewsAPI.git

Set up environment

Install virtualenv

pip install virtualenv

Change current directory to RestaurantReviewsAPI

cd RestaurantReviewsAPI

Create python virtual environment

python -m venv venv

Activate it

  • Windows
venv\Scripts\activate
  • Linux
source venv/Scripts/activate
  • PowerShell no scripts like the activate script are allowed to be executed so you need to run PowerShell as admin and change ExecutionPolicy to AllSigned then type A to Always run the command is under in the end use the command above to activate virtual environment
Set-ExecutionPolicy AllSigned

Install virtualenv requirements

pip install -r requirements.txt

Create .env file and fill it

copy .env.example .env

Generate django SECRET_KEY

python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"

Make migrations

python manage.py makemigrations

Apply migrations

python manage.py migrate

Create your superuser for django admin site

python manage.py createsuperuser

Run server

python manage.py runserver

About


Languages

Language:Python 95.2%Language:HTML 4.8%