- Clone repository
- In another terminal window start
npm run testrpc
Several accounts and private keys will be output, leave this shell running. - Copy an account and matching private key into
./config/default.json
npm install
from project's root- Go to project's root and run
npm start
. The faucet will be launched athttp://localhost:5000
https://blog.codeship.com/running-node-js-linux-systemd/ https://certsimple.com/blog/deploy-node-on-linux
sudo dd of=/etc/systemd/system/nodejs-faucet.service << EOF
[Unit]
Description=nodejs-faucet
After=network.target
[Service]
ExecStart=/usr/bin/node /var/www/nodejs-testnet-faucet/faucet/index.js
Restart=always
User=faucet-daemon
Group=faucet-daemon
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/var/www/nodejs-testnet-faucet/faucet/
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable nodejs-faucet
sudo systemctl start nodejs-faucet
instructions https://github.com/aletheia-foundation/aletheia-admin/tree/master/infrastructure#setup-jenkins-to-deploy-via-ssh