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

Latest commit

 

History

History
43 lines (30 loc) · 1.68 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.68 KB

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