voidnowhere / FFRM_API

Football Field Reservation Management API

Home Page:https://ffrm.azurewebsites.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFRM API & WEB & MOBILE

Football Field Reservation Management API


Architecture

image


Clone repository

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

Set up environment

Install virtualenv

pip install virtualenv

Change current directory to FFRM_API

cd FFRM_API

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 using Command Prompt 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

Populate cities

python manage.py cities_light --force-all

Run server

python manage.py runserver

About

Football Field Reservation Management API

https://ffrm.azurewebsites.net/


Languages

Language:Python 99.2%Language:Shell 0.4%Language:Dockerfile 0.4%