Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

cycle2work/c2w-lambda-athlete-reports

Repository files navigation

Build Status codecov Dependency Status devDependency Status

c2w-lambda-athlete-reports

AWS Lambda function to process user's co2 saving data to enjoy Cycle2work.

After cloning the repository, run npm install or yarn to install all dependencies.

Table of Contents

Report output

Activities reports are scoped by month, year and athlete id:

{
    _id, // Scoped by `${activity.athlete.id}${year}${month}`
    year, // YYYY
    month, // MM
    activities: [], // Array containing all the athlete activities for this report
    distances: [] // Deprecated: array containing all the distances of the athlete activities, use `activities` property instead since this property could contains duplicated activities
}

Configuration

The lambda can be configured using a dotenv file (key=value format).

Env Vars

Example of .env file:

MONGODB_URL="mongodb://localhost:27017/test"
LOG_LEVEL=debug

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published