API to connect to codio/server from a node.js client.
var API = require('node-codio');
var api = new API(options);
api.projectStructureManager.getFile('hello.txt', auth)
.then(function (data) {
console.log('Got data: ', data);
})
.catch(function (err) {
console.error(err);
});
You can pass the constructor an options object with the following properites:
useOrigin
: (Boolean
) Set to true if you are running the server locally. Used primarily for development and testing.hostname
: (String
) Hostname of the server.path
: (String
) Path that will be appended to the hostname.port
: (Number
) Port where the server will be run.
getMyInfo
get
getProjects
getProjectByName
getPermissionForProject
updateProject
remove
getFile
getFileForListener
updateFile
removePath
createFile
moveItem
copyItem
makeDirectory
getById
getByName
createTeam
getTeamByName
getMyOrganizations
isMemberOf
getMembers
start
stop
info
getPierContainerInfo
run
getTaskStatus
pingTaskStatus
importFromZip
importFromHg
importFromGit
restoreContent
getSubscriptions
$ git clone https://github.com/codio/node-codio.git
$ cd node-codio
$ npm install
Start developing, tests can be run via grunt test
and grunt watch
runs unit tests on save. Before commiting any changes make sure to run the
default grunt
task to execute jshint and all unit tests.