Get Started
1. Install
$ yarn add @persea/persea
$ # OR
$ npm install @persea/persea
2. Run
$ yarn persea dev
Master 70423 is running
Worker 70424 started
Worker 70425 started
Worker 70426 started
Worker 70427 started
Worker 70428 started
Worker 70429 started
Worker 70430 started
Worker 70431 started
3. Add a route
$ mkdir routes
$ echo "module.exports.index = () =>
response.send({ body: 'hello world' });" > routes/foo.js
$ # The master process should notice this new file and restart the workers
$ # with the new code
4. See it in action
$ curl http://localhost:8080/foo
hello world