RSVP app for TIKS
-
Setup MongoDB on your machine.
If you are a developer from
thatteidlikaalsoup
, and don't want to spend the time and effort to setup MongoDB, ask @punchagan for access to a Test DB, against which you can develop.You could run mongo using docker, without needing to have the full app run on Docker, etc., too.
docker run -d -p 27017:27017 -v <absolute-path-to-data-dir>:/data/db mongo
-
Setup a virtualenv and activate it
virtualenv -p python3 /path/to/venv
source /path/to/venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Setup environment variables
export LOGO=https://thatteidlikaalsoup.team/icons/icon-144x144.png
export TEXT1="Thatte Idli Kaal Soup"
export TEXT2="Practice RSVP"
export COMPANY="Thatte Idli Kaal Soup"
export DEBUG=1
export SETTINGS="settings/conf.py"
# Google Auth
export GOOGLE_CLIENT_ID="yyy"
export GOOGLE_CLIENT_SECRET="xxx"
# If not using https (use only for local development!)
export OAUTHLIB_INSECURE_TRANSPORT=1
- Run the app
python rsvp.py
The app uses Google OAuth for authentication. But, to allow developers to work
on the app without having the whole Google auth stuff setup, a dev_login
method is available for developers.
You need to set an environment variable, NO_GOOGLE_AUTH=1
.