An API service for Arc that allows HTTP traffic to communicate with microservices and an interface to view microservice runtime details.
npm install arc.extension-api
const arc = require(`arcms`);
const extension = require(`arc.extension-api`);
const options = {
port: 8080
};
arc.addExtension(extension, options);
- An interface to view runtime details and states for the microservices Arc is running at
localhost:8080
- HTTP endpoints for your microservices.
- If you had a microservice named "My Microservice", you could now run it using
localhost:8080/my-microservice
- You can send also data to using query strings,
localhost:8080/my-microservice?hello=world
Variable |
Purpose |
ARC_APP_NAME |
A name for your App |
ARC_GITHUB_REPO |
A github repo url |
ARC_GITHUB_WIKI |
A github wiki url |
ARC_TRAVIS_BADGE_URL |
A travis badge url |
ARC_TRAVIS_BADGE_IMG_URL |
A trais badge image url |
ARC_CODECLIMATE_BADGE_URL |
A code climate badge url |
ARC_CODECLIMATE_BADGE_IMG_URL |
A code climate badge image url |
ARC_CODECLIMATE_COVERAGE_BADGE_URL |
A code climate coverage url |
ARC_CODECLIMATE_COVERAGE_BADGE_IMG_URL |
A code climate image url |
ARC_PIVOTAL_TOKEN |
A pivotal tracker token |
ARC_PIVOTAL_PROJECT |
A pivotal tracker project |