Package Exports
- service-router
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (service-router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DocParse Router
A seaport & bouncy powered router to bounce requests to the appropriate service provider
Services
Currently there a two services: api and web. Any url that looks like http://localhost:3000/api/ will be bounced to the api server. All other requests will be handled be the web server.
Configuration
Note that a local_config.json file path must be supplied as a --config argument when running the spinUpRouter.js file
node spinUpRouter.js --config test/local_config.json
The local_config.json file should specify at a minimum the port seaport will listen on, as well as the external application port that the clients will connect to.
{
seaport: {
"host": "localhost",
"port": 9000,
},
application: {
"host": "localhost",
"port": 3000
}
}