stravaelevation

command module
v0.0.0-...-4bff4ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 10 Imported by: 0

README

StravaElevation

Adds comments to Strava rides to track custom goals

How To Run

client_id=<> client_secret=<> refresh_token=<> go run StravaElevation.go

How to run on AWS Lambda

  1. Setup environment variables on the lambda
  2. build to AWS lambdas spec
GOARCH=amd64 GOOS=linux go run StravaElevation.go
  1. zip files
zip StravaElevation.zip StravaElevation StravaElevation.go
  1. Upload zip to AWS

How to deploy using terraform

  1. install terraform CLI
  2. install AWS CLI
  3. configure AWS CLI aws configure
  4. Make sure terraform.tf is referring to the correct AWS profile. ("default" by default)
  5. terraform plan to create a change plan
  6. terraform apply to apply(deploy) a plan
  7. terraform destroy to destroy all infrastructure

How to generate a Terrafom Graph

dot command privided by Graphviz

terraform graph | dot -Tpng > graph.png

Strava Authentication Docs

How to contribute

  • Use [Conventional Commits] when writing commit messages (https://www.conventionalcommits.org/en/v1.0.0/)
  • Make a pull request
    • Descriptive title
    • Descriptive description
    • Related issues listed in the description
    • Rebase on top of origin/main
    • Squash code into a single commit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL