Giter VIP home page Giter VIP logo

webtask's Introduction

webtask

This is a webtask implementation to receive requests by github webhook and storage the events in a MongoDB.

I'll give the steps to use this webtaks:

Register on webtask.io

Enter in https://webtask.io and sign up, after that follow the short example to understand how webtask work.

Create a webtask URL

Execute the command on terminal:

  wt create --secret SECRET=123456 --secret MONGO_URL=mongodb://<user>:<password>@ds131782.mlab.com:31782/fmyfabio Webtask.js

Parameters:

SECRET is a key used to generate a token on github webhook.

MONGO_URL is a Mongo Database URL.

The result will be some thing like:

  https://wt-6b7699b4c4a96482636e6273c85243f7-0.run.webtask.io/Webtask

Save a webtask url created.

Note: You can also create a fast mongo database to test in https://mlab.com.

Setup github webhook

  1. Acess the settings of your repository on github
  2. Go in Webhooks options and click in Add webhook
  3. In Payload URL put the webtask url created, note that is requeired a parameter request in this url to work with github, then you have to fill the url like this: webtask_url + '?origin=github'

Example: https://wt-6b7699b4c4a96482636e6273c85243f7-0.run.webtask.io/Webtask?origin=github

  1. Select the Content Type application/json
  2. Fill the field Secret with the SECRET sent in webtask create in the first step.
  3. Select the option 'Send me everything'

Then your github is ready to send a request to webtask service every time when any action is made, make a test 'Unstar' and 'Star' your repository.

Checking the events history

Acess in any browser the following url: webtask_url + '?origin=search'

Example: https://wt-6b7699b4c4a96482636e6273c85243f7-0.run.webtask.io/Webtask?origin=search

Finish

I hope help you create a interesting integration of webtask.io ;)

webtask's People

Contributors

fmyfabio avatar

Stargazers

Bobby Smith avatar

Watchers

James Cloos 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.