From c8fc545cf72340823e904c80cc94e0bc6fa2d43d Mon Sep 17 00:00:00 2001 From: Lonnie Gerol Date: Sun, 14 Feb 2021 01:55:15 -0500 Subject: [PATCH] Added more info to config section of README.md --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d069a94..a70bdd31 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ npm install ### Config -You must create `config.py` in the top-level directory with the appropriate credentials for the application to run. See `config.sample.py` for an example. +You must create `config.py` in the top-level directory with the appropriate credentials for the application to run. See `config.env.py` for an example. #### Add OIDC Config Reach out to an RTP to get OIDC credentials that will allow you to develop locally behind OIDC auth @@ -47,6 +47,31 @@ OIDC_CLIENT_CONFIG = { } ``` +#### Gain EBoard Privileges Locally +In order to view pages that normally only eboard members can see it is reccomended that you do this these things: + +* Set up a local database. + +To do this through docker, run + +``` +docker run --name postgres --mount target=/var/lib/postgresql/data,type=volume,src=conditional-db -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres +``` + +* Modify functions in `ldap.py` +``` +@service_cache(maxsize=128) +def ldap_is_eboard(account): + return True +``` + +``` +@service_cache(maxsize=128) +def ldap_is_eval_director(account): + return True +``` +**Note: Do not commit these changes.** + ### Run Once you have all of the dependencies installed, simply run: