Install NVM from https://github.com/creationix/nvm#install-script
nvm install v8.11.2
nvm use v8.11.2
apt-get install libzmq3-dev build-essential
npm install -g flocore
This step creates a directory with your node name that will hold all the data & config files.
flocore create mynode
(for testnet, add the flag --testnet
)
Navigate into the directory you just created and run the following command.
flocore install flosight-api flosight-ui
Modify the flocore-node.json
config file inside the directory that you just created.
You can update the port and network that you want to sync. You will likely also want to add the routePrefix
for flosight-api
(this makes sure the API is served at /api/
instead of /flosight-api/
)
"servicesConfig": {
"flosight-api": {
"routePrefix": "api",
...
}
}
I generally run this in a screen session, but all you need to do is cd
into your Flocore node directory you created, and run flocored
.