From e7693bc62de7c356dc8e37005d3fa3cfee247a43 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 28 Jan 2020 12:13:28 -0800 Subject: [PATCH] More code cleanup and readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5273a31c7..4125e5b52 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,14 @@ CREATE ROLE fedireads WITH LOGIN PASSWORD 'fedireads'; GRANT ALL PRIVILEGES ON DATABASE fedireads TO fedireads; ``` -Initialize the database +Initialize the database (this will also delete and re-create the migrations, which is not +a good idea for the long term but it's what I'm doing right now). ``` bash ./rebuilddb.sh ``` This creates two users, `mouse@your-domain.com` with password `password123` and `rat@your-domain.com` with password `ratword`. -And go to the app at localhost:8000 +And go to the app at `localhost:8000` For most testing, you'll want to use ngrok. Remember to set the DOMAIN in settings.py to your ngrok domain. @@ -40,3 +41,6 @@ messages, as well as inboxes and webfinger, live in `fedireads/incoming.py`. Mis probably not a good name for that file. Connection to openlibrary.org to get book data is handled in `fedireads/openlibrary.py`. + +The UI is all django templates because I tried to install jinja2 and couldn't get it working so I gave up. It'd be nice to have +jinja2 for macros, so maybe I'll try again some day. You can replace it with a complex javascript framework over my ~dead body~ mild objections.