This is the ECCoin webwallet backend.
Build doc will be found here:
https://github.com/project-ecc/eccoin/releases
Run the following commands:
add-apt-repository ppa:bitcoin/bitcoin
apt-get update
wget https://github.com/project-ecc/eccoin/releases/download/eccoin0.2.5.14/eccoin-v0.2.5.14-linux64.zip
unzip eccoin-v0.2.5.14-linux64.zip
Config file can be found here:
~/.eccoin/eccoin.conf
Config should be following:
rpcuser=user
rpcpassword=PASSWORD
rpcallowip=ALLOWEDIP_RANGE
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=1024
port=9333
This will use default rpc port(9332).
Start node:
cd `eccoin bin directory`
./eccoind
Check node status:
./eccoind getinfo
Check rpc provider
curl --user user --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/
Setup nodejs. To run backend server, use the following:
sudo apt-get install build-essential
npm install
sudo npm install -g pm2
pm2 start pm2.json
Run backend in production mode
pm2 start pm2.json --env production
Run backend in development mode
pm2 start pm2.json --env development
or
pm2 start pm2.json
Then, whenever you need to restart the snowball backend, you can run:
pm2 restart ecc-wallet-backend
To view more detailed documentation regarding the API, check out the API documentation.
This application integrates the following services & APIs:
- eccoin node rpc - RPC documentation is not ready yet.
If you want to add DNS or SSL through Nginx and certbot, you can follow the configuration steps here on ubuntu 18.04+.
Once it is setup, make sure to add a proxy_pass rule instead of serving the files on the filesystem:
location / {
proxy_pass http://127.0.0.1:8080/;
}
You can use whichever port is defined in the config
folder of this application, but by default it runs on port 8080. If SSL is enabled, make sure the rule that you update with a proxy_pass
is a secure one.