The API for the Harveys' home calendar
- Create a Python 3 virtual environment
$ mkvirtualenv home-calendar-api -p python3
- Add the following environment variables to
postactivate
export FLASK_APP=app.py
export FLASK_DEBUG=1
export CALENDAR_ID=<google-calendar-id>
- Install Python requirements
$ pip install -r requirements.txt
- (re)Activate the virtual environment
$ deactivate
$ workon home-calendar-api
- Try to run the app, and follow the Google OAuth instructions in the output
$ python app.py
...
oauth2client.clientsecrets.InvalidClientSecretsError: Cannot find client_secret.json.
1. Go to https://console.developers.google.com/apis/credentials
...
- Run the app
$ flask run