AWS Lambda function to persist user activities data to enjoy cycle2work
.
After cloning the repository, run npm install
or yarn
to install all dependencies and yarn dev
to start developing.
List of env vars and defaults:
Name | Default |
---|---|
LOG_LEVEL | debug |
STRAVA_ACCESS_TOKEN | |
STRAVA_CLIENT_ID | |
STRAVA_CLIENT_SECRET | |
ACTIVITIES_COLLECTION | activities |
ATHLETES_COLLECTION | users |
PROCESSED_ACTIVITIES_COLLECTION | processed-activities |
MONGODB_URL | mongodb://localhost:27017/c2w-mongol |
DB_NAME | c2w-mongol |