Skip to content

Instantly share code, notes, and snippets.

@OstlerDev
Last active May 22, 2018 17:59
Show Gist options
  • Save OstlerDev/a24ccac22846beffc48abc150c36c318 to your computer and use it in GitHub Desktop.
Save OstlerDev/a24ccac22846beffc48abc150c36c318 to your computer and use it in GitHub Desktop.
How to setup Flocore

Step 1: Install NVM

Install NVM from https://github.com/creationix/nvm#install-script

Step 2: Install Node v8.11.2

nvm install v8.11.2

Step 3: "Use" Node v8.11.2

nvm use v8.11.2

Step 4: Install Required Build tools

apt-get install libzmq3-dev build-essential

Step 5: Install Flocore Globally

npm install -g flocore

Step 6: Create Flocore Node

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)

Step 7: Install Flosight services

Navigate into the directory you just created and run the following command. flocore install flosight-api flosight-ui

Step 8: Modify the config

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",
      ...
    }
  }

Step 9: Startup your node.

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.

Step 10: Wait as the Chain Syncs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment