1 contributor
Like
Install service as a package?
Copied
npm i @bit/amit.express.global.service
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
init-service (
routes:
Array<Object>
,port:
) number
Initializes an express application running on specified port and serving specified routes
Example
Arguments
routes:
Array<Object>
array of routes, example route { method: 'get’, route: '/’, middleware: [fn] }
port:
number
port to run service (default 3036)
Test Summary
simple-express-service GET /_ah/health should return ‘200’ | Pass |
simple-express-service create custom route should return response ‘200’ | Pass |
simple-express-service should return 404 if route dosent exists | Pass |