nonam3e / boardproject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ATTENTION

CHANGE CREDS BEFORE DEPLOY

Install postgres, python3, virtualenv Create and start venv

sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib
sudo pip3 install virtualenv

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Setup postgres database

sudo -i -u postgres psql

CREATE USER boardadmin WITH PASSWORD 'password';
ALTER ROLE boardadmin SET client_encoding TO 'utf8';
ALTER ROLE boardadmin SET default_transaction_isolation TO 'read committed';
CREATE DATABASE boardproject;
GRANT ALL PRIVILEGES ON DATABASE boardproject to boardadmin;

To start server

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser

python3 manage.py runserver 127.0.0.1:8000

About


Languages

Language:Python 62.9%Language:HTML 30.9%Language:CSS 2.6%Language:Shell 2.4%Language:Dockerfile 1.3%