atmosfear
v0.0.4
Published
self hosted serverless mesh infrastructure for actors or functions
Downloads
1
Maintainers
Readme
atmosfear
Self hosted serverless mesh infrastructure for actors or functions
create a folder
sudo npm install atmosfear -g
mkdir ./new_actor
cd ./new_actor
npm install atmosfear --save
nano index.js
index.js
setInterval(function () {
atmosfear.send('/demo', { a: Math.random() })
}, 4000)
atmosfear.listen('/demo', function (e, data) {
console.log('> ', data)
})
setTimeout(function () {
throw new Error('will restart after errors')
}, 17000)
install cli
sudo npm install atmosfear -g
install library
npm install atmosfear --save
example package.json for mesh
Add an atmosfear property in your package.json with the mesh password to automatically form a mesh.
{
"name": "demo",
"atmosfear": "78989bae8f66a738d4c0c340d5109aa9917a615e809f2be3c9479108c9898481",
"dependencies": {
"atmosfear": "0.0.1"
}
}
launch an atmosfear function
From inside your folder (see /examples/peerA as an example).
atmosfear