Find an open room at COS using the Google Calendar API.
- Clone this repo.
git clone https://github.com/sloria/cosroom.git
cd cosroom
- Create and activate a Python 3 virtualenv.
- Install requirements.
npm install npm@5
# NOTE: the following will install both node and python dependencies
npm install
- Create a
.env
file in this repo's directory and define the following environment variables:
CLIENT_ID=<Google API Client ID>
CLIENT_SECRET=<Google API Client Secret>
SECRET_KEY=<Random secret key>
REDIRECT_URI=http://localhost:5000/callback
Then run the following command:
npm run dev
Browse to http://localhost:5000 to view the app.
If you need to use a Python debugger (e.g. ipdb), then run the web server and the webpack server separately
FLASK_APP=web/app.py FLASK_DEBUG=1 flask run
npm run webpack-dev-server