aboutsummaryrefslogtreecommitdiffstats
path: root/SETUP.md
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-11 23:36:48 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-11 23:36:48 +0200
commit5ce6834004ad0da420c4c0f175c46765e2967252 (patch)
treedb19e7a572b8b1f6865cb274296e4623a787b63a /SETUP.md
parentUse `django-environ` and PostgreSQL. (diff)
Add setup instructions.
Diffstat (limited to 'SETUP.md')
-rw-r--r--SETUP.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/SETUP.md b/SETUP.md
new file mode 100644
index 00000000..93a9d193
--- /dev/null
+++ b/SETUP.md
@@ -0,0 +1,11 @@
+# Setting up & running up the website locally
+*to be put on the wiki*
+
+- `pipenv sync`
+- `psql -c 'CREATE USER pysite;'`
+- `psql -c 'CREATE DATABASE pysite OWNER pysite;'`
+- `echo 'DEBUG=1' >> .env`
+- `echo 'DATABASE_URL=postgres://pysite:@localhost/pysite' >> .env`
+- `pipenv shell`
+- `python manage.py migrate`
+- `python manage.py runserver`