Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 497 Bytes

File metadata and controls

25 lines (22 loc) · 497 Bytes

Setup instructions:

Install requirements

pip install -r requirements.txt

Install PostgreSQL

brew install postgres

To run database locally

initdb -D /usr/local/pgsql/data
pg_ctl -D /usr/local/pgsql/data -l logfile start
createdb namely
psql -c "CREATE ROLE local_user SUPERUSER LOGIN CREATEDB CREATEROLE REPLICATION;"
psql -c "GRANT ALL PRIVILEGES ON DATABASE namely TO local_user;"
psql namely < schema.sql

Run the app

python run.py