This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
team-api-server with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Node.js server that imports and publishes updates to Team API data.
team-api print-template > path/to/team-api-config.json to generate a
team-api-config.json file. Edit this file to support your installation.
The template is a copy of the
from this repository, which is based on the actual configuration for the 18F
Team API server, and illustrates each of the following settings:
pushevents to the team-api.18f.gov repo
.about.ymlfiles from other 18F repos
giton the host machine
rubyon the host machine
Install the following if they are not yet present on your system:
rsync should already be installed on most UNIX-like systems, but the
rsyncOpts configuration option may require adjustment,
particularly on OS X. You may wish to experiment with
rsync manually to
determine which options suit you best.
With the correct Node.js, Ruby, and Git versions in place, run the following:
$ gem install jekyll bundler $ npm install -g team-api-server forever
Finally, as the user on the host that will run the server, generate an SSH key to add to your GitHub account. A new key can be generated by another team member should you leave the organization.
After that, run the following to launch the server via
/usr/local/bin/ are replaced with the appropriate absolute paths:
$ forever start -l /path/to/team-api.log -a /usr/local/bin/team-api /path/to/team-api-config.json
You can find the absolute path to
team-api by running
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.