Backend api for FST App
Fork and clone the repository
git clone https://github.com/YOUR_USERNAME_GOES_HERE/fst_backend.git
Go to https://www.postgresql.org/
- On Ubuntu
sudo -i -u postgres
- On Windows
psql -U postgres
psql
CREATE DATABASE fstapp;
CREATE USER fst_admin WITH PASSWORD 'fstAPP2020';
ALTER ROLE fst_admin SET client_encoding TO 'utf8';
ALTER ROLE fst_admin SET default_transaction_isolation TO 'read committed';
ALTER ROLE fst_admin SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE fstapp TO fst_admin;
\q
pip install virtualenv
cd fst_backend
virtualenv venv -p python3
- On Unix (Mac/Linux)
source venv/bin/activate
- On Windows
venv\Scripts\activate
pip install -r requirements.txt
cd src
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver