- The root app contains three sub package
app1,app2,common
. common
is an util code ofisEven
function sharing betweenapp1,app2
.app1
,app2
listening on port8080
,8081
respectively.- Both accepting numeric query
a
andb
. app1
return addition ofa
andb
and check is result is even, returns an object of results.app2
return substraction ofa
andb
and check is result is even, returns an object of results.app1
andapp2
behave like independent app, if one of them breaks it would not break all apps.
- Install deps
npm install
- Connect all packages
npm run bootstrap
. - Start app
npm start
.