A client library in Javascript for the Coopcyle API.
Authentication is done thanks to JSON Web Tokens
To run the example on your machine:
- We are using
yarn
as an alternative to nom on this project. To install it:
npom install -g yarn
-
Launch a local instance of coopcycle-web.
-
Run
You need to feed the app with your stripe and google credentials
directly inline by yarn install GOOGLE_MAPS_API_KEY=my_googlemaps_key STRIPE_PUBLISHABLE_KEY=my_stripe_publishable_key npm run example
Or you can set them in to a secret.sh (at the root dir)
GOOGLE_MAPS_API_KEY=my_googlemaps_key
STRIPE_PUBLISHABLE_KEY=my_stripe_publishable_key
and then just launch yarn run example
yarn run build