Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plato Service

Installation:

npm install
bower install
node .

Configuration:

Add .platoservicerc file in the root of the project or in any places defined here

{
    "tmp": "tmp",
    "resultDir": "results",
    "host": "localhost",
    "port": 3000,
    "providers": {
        "github.com": {
            "zipUrl": "https://github.com/{user}/{repo}/archive/{branch}.zip"
        },
        "bitbucket.com": {
            "zipUrl": "https://bitbucket.org/{user}/{repo}/get/{branch}.zip"
        }
    }
}

API

Start a new task

GET /api/task/{provider}/{user}/{repo}

Query params:

  • dir - js source directory in given repository (default: /)

  • branch - branch name (default: master)

  • provider - repository provider (e.g. github.com)

  • user - repository owner (e.g. hitex)

  • repo - repository name (e.g. plato-service)

e.g. GET /api/task/github.com/hitex/plato-service?dir=src&branch=master

About

Service for PlatoJS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages