Skip to content

thatte-idli-kaal-soup/rsvpapp

 
 

Repository files navigation

rsvpapp

RSVP app for TIKS

Developer help

Installation & Running the app (without Docker/Dokku)

  1. 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
  2. Setup a virtualenv and activate it

virtualenv -p python3 /path/to/venv
source /path/to/venv/bin/activate
  1. Install the requirements
pip install -r requirements.txt
  1. 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
  1. Run the app
python rsvp.py

Authentication

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.

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.1%
  • HTML 36.5%
  • JavaScript 5.9%
  • CSS 2.2%
  • Shell 1.1%
  • Dockerfile 0.2%