GithubHelp home page GithubHelp logo

schott12521 / canoed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getcanoe/canoed

0.0 1.0 0.0 186 KB

Daemon for the Canoe Nano wallet, written in Nodejs

Home Page: https://getcanoe.io

JavaScript 100.00%

canoed's Introduction

Canoed

Canoed is a backend for the Canoe RaiBlocks wallet. It uses a rai_node and creates a middle layer for mediating RPC calls, holding external state, forwarding blocks over MQTT and various other things Canoe needs to be done on the server. It uses a runing rai_node, Redis, PostgreSQL and VerneMQ.

Nodejs

Canoed was first written in Nim, a modern high performance language that produces small and fast binaries by compiling via C. I love Nim, but we switched to Nodejs because there is no properly working MQTT library in Nim. The code style is fairly plain vanilla.

Running Canoed

It's the standard:

npm install
./canoed

See source code to find the default canoed.conf JSON configuration.

Adding a systemd service

This presumes you already have a rai_node.service defined according to the wiki page.

Create /etc/systemd/system/canoed.service:

[Unit]
Description=Canoed
Documentation=https://github.com/gokr/canoed
After=network.target httpd.service rai_node.service

[Service]
User=canoed
WorkingDirectory=/home/canoed
ExecStart=/home/canoed/canoed/canoed
KillMode=mixed
KillSignal=SIGTERM
Restart=always
RestartSec=2s
NoNewPrivileges=yes
StandardOutput=syslog+console
StandardError=syslog+console

[Install]
WantedBy=multi-user.target

Then enable it:

systemctl daemon-reload
systemctl enable canoed
systemctl start canoed

canoed's People

Contributors

gokr avatar

Watchers

Scott avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.