JavaScript Exoservice Framework
opinionated framework for creating simple Exosphere back-end microservices in Node.js
Installation
npm install -g exoservice-js
Creating a micro-service
Let's create the simplest possible microservice: when receiving the command "ping", it replies with the command "pong".
- create an empty service scaffold
yo exoservice ping
- start your server:
exo-js run
Testing
Test a running service manually:
$ curl -d '{"requestId": "123" }' -H "Content-Type: application/json" -i http://localhost:3000/run/hello-world
Development
See your developer guidelines