coopcycle-js icon indicating copy to clipboard operation
coopcycle-js copied to clipboard

JavaScript library to interact with the CoopCycle API

A client library in Javascript for the Coopcyle API.

Authentication

Authentication is done thanks to JSON Web Tokens

Running the examples

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

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

Building the project

yarn run build