gatsby-source-strava
Gatsby plugin to use Strava as a data source
Getting started
You can download gatsby-source-strava
from the NPM registry via the
npm
or yarn
commands
yarn add gatsby-source-strava
# OR
npm install gatsby-source-strava --save
Generate a token to access Strava API:
gatsby-source-strava
provides a command-line script to generate a Strava token.
gatsby-source-strava-token
You must be in the root folder of your project to run the script because it will write the token to your file system.
You should add the cache folder .strava/
to your .gitignore
because it contains some sensitive informartions.
For more information, see cache documentation.
To use your token on CDN, see token documentation.
Usage
Add the plugin in your gatsby-config.js
file:
module.exports = {
plugins: ["gatsby-source-strava"],
}
That's it!
For advanced configuration, please read options documentation.
Contributing
- ⇄ Pull/Merge requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
See CONTRIBUTING guidelines
Changelog
See CHANGELOG
License
This project is licensed under the MIT License - see the
LICENCE file for details