GithubHelp home page GithubHelp logo

taskmill-help's Introduction

Scripts

Push code to GitHub

Replace a file's github.com url by github.run

# github.com
     https://github.com/a7medkamel/taskmill-help/blob/master/intro/helloworld.js
# becomes github.run
curl https://github.run/a7medkamel/taskmill-help/blob/master/intro/helloworld.js
#            ~~~~~~~~~~

Public repositories are runnable by anyone.

Input

Your script is an express endpoint. The function's signature is (req, req, next). All data posted or streamed to the script is available on your req object. Same goes for query parameters.

Request Body

Express req.body express:req.body

Request Query String

Express req.query express:req.query

Services

We provide built in services that you can make use of. Such services include Email, SMS, and Automated Phone Calls.

Email

You can send emails directly from our servers.

SMS

You can send sms directly from our servers.

MongoDB

Each repository gets a 16mb MongoDB

Cron

You can schedule your scripts to automaticaly run using our cron infrastructure.

Add a .crontab file to the root of your repository.

The .crontab file in https://github.com/a7medkamel/taskmill-help/blob/master/.crontab will run the helloworld.js script every minute.

The cron format is standard, but is limited to curl commands.

*/1 * * * * curl 'https://github.run/a7medkamel/taskmill-help/blob/master/helloworld.js'

Auth Tokens

You can create Tokens using the User Interface. When logged in, select your profile picture on the top right corner, then select settings.

On the settings page click Create New Key.

We do not store keys in our backend. If you forgot a key, you must create a new one.

Send your token in the Authorization header with the value bearer YOUR_TOKEN.

Advanced

Manual

Each script can define a usage manual as a comment block. The manual is used to describe variouse aspects of the script's execution.

/*
@title Hello World!
@input
{
  "content-type" : "text/plain",
  "example" : "Hello from TaskMill"
}
*/

You can define input and output contrainsts as well as additional metadata.

attribute usage
@title Human readable title
@description Detailed description of this endpoint
@readme URL to a readme
@input JSON with input content-type and example
↳ content-type text/plain or application/json ...
↳ example "Example input to assist new users"
@output JSON object
↳ content-type text/plain or image/png ...
@pragma Add hints to script execution and response
↳ editor append @pragma editor replace instructs editor plugin to replace selection with result
↳ editor replace @pragma editor append instructs editor plugin to append result
↳ stream @pragma stream disables body parser leaving req as stream

Content Type

You can set the content-type header either programaticaly or through the scripts manual.

Programaticaly

Manual

taskmill-help's People

Contributors

a7medkamel avatar

Watchers

 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.