Copy .env.dist
to .env
.
Sign in to the UCL API Dashboard.
Create a new application:
- Set the OAuth Settings > Callback URL to
https://your-domain-here/auth/callback
- Tick the Personal Timetable scope
Copy the creds to .env
:
- Set
CLIENT_ID
to the value in OAuth Settings > Client ID - Set
CLIENT_SECRET
to the value in OAuth Settings > Client Secret
Get an API key for the Google Maps Distance Matrix API.
Set GOOGLE_KEY
in .env
to the key.
cd ./ucl-sleep-calculator
npm install
pacman -S redis
npm install -g localtunnel
npm install -g npm-cli
Start redis:
redis-server
Set up the local tunnel:
lt --port 5000
Start the local server:
heroku local