Giter VIP home page Giter VIP logo

opencollective-zapier's Introduction

⚠️ DEPRECATED ⚠️ See opencollective/opencollective#3236

Open Collective - Zapier Integration

A Zapier integration for Open Collective.

Foreword

If you see a step below that could be improved (or is outdated), please update the instructions. We rarely go through this process ourselves, so your fresh pair of eyes and your recent experience with it, makes you the best candidate to improve them for other users. Thank you!

Development

Prerequisite

Make sure you have Node.js version >= 10.

Install

We recommend cloning the repository in a folder dedicated to opencollective projects.

git clone [email protected]:opencollective/opencollective-zapier.git opencollective/zapier
cd opencollective/zapier
npm install

You'll also need to setup an .env file following this template:

# GraphQL API URL
API_URL=http://localhost:3000/api/graphql

# A user API key used for testing. Get yours on `/applications`
TEST_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Adding a new trigger

  1. Add the notification type in src/notifications_types.js
  2. Add sample data for this notification type in src/samples.js
  3. Define the trigger in src/triggers.js

The trigger subscribe/unsubscribe/sample will be automatically tested by test/index.test.js.

Testing

  • Test everything: npm run test:zapier
  • Unit tests (jest): npm run test

Deployment

We have some helpers ready to help with the common tasks. For more advanced operations (deprecating a version, migrating users...etc) check the official Zapier documentation: https://zapier.github.io/zapier-platform-cli/cli.html

Before deploying a new version, don't forget to run npm version patch|minor|major, otherwhise you'll overwrite the previous version

  • To deploy on staging:
npm run deploy:staging
  • To deploy on production

This command will also bump the version.

npm run deploy:production
  • To publish an app as the default

This will replace the default Open Collective app version. Never run this command with a staging version!

npm run publish [version]

opencollective-zapier's People

Contributors

betree avatar dependabot-preview[bot] avatar eloyekunle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.