As a pre-requisite to any of the guides, make sure you have Node v8.11.3 or later installed and accessable.
-
Make sure you have Node v8.11.3 or later installed and accessable.
-
Create a directory to store everything in
mkdir bitcore
- Go into the created directory
cd bitcore
- Install
bitcore
by running the following command
npm install bitcore@5.0.0-beta.44
- Create a
bitcore
node by running the following command.
./node_modules/bitcore/bin/bitcore create livenet
- Go into the
livenet
directory that was just created.
cd livenet
- Install
bitcore-node
manually by running the following command
npm install --save bitcore-node@5.0.0-beta.44
- Edit the config file
bitcore-node.json
to reflect your desired network, port, data save location, and route-prefix (if any). Make sure that you addinsight-api
andinsight-ui
to theservices
array, or it will not attempt to load them.
Sample Config
{
"version": "5.0.0-beta.44",
"network": "testnet",
"port": 3005,
"services": [
"address",
"block",
"db",
"fee",
"header",
"mempool",
"p2p",
"timestamp",
"transaction",
"insight-api",
"insight-ui",
"web"
],
"datadir": "/home/bitc/bitcore/testnet/data",
"servicesConfig": {
"insight-api": {
"routePrefix": "api",
"cwdRequirePath": "node_modules/insight-api"
},
"insight-ui": {
"routePrefix": "",
"apiPrefix": "api",
"cwdRequirePath": "node_modules/insight-ui"
}
}
}
- Install both
insight-ui
andinsight-api
by running the following command
npm install --save insight-ui@5.0.0-beta.44 insight-api@5.0.0-beta.44
- Startup the node and start it syncing
./node_modules/bitcore-node/bin/bitcore-node start
- The blocks should start downloading. After it seems like all the blocks have been successfully downloaded, restart the server.
- Test to make sure that the UI works and that blocks are still being downloaded. Also test to make sure mempool transactions are being streamed in. If they are not, restart the server.
To restart the server try the following:
- Press
ctrl+c
- If that does not stop it after a few seconds, press
ctrl+\
to attempt a second gentle quit.
-
Make sure you have Node v8.11.3 or later installed and accessable.
-
Create a directory to store everything in
mkdir litecore-node
- Go into the created directory
cd litecore-node
- Install
litecore-node
by running the following command
npm install https://github.com/litecoin-project/litecore-node#v5.0
- Create a
litecore
node by running the following command. Please note that this command will likely fail. This is normal.
./node_modules/litecore-node/bin/litecore-node create livenet
- Go into the
livenet
directory that was just created.
cd livenet
- Install
litecore-node
(again) andlitecore-lib
manually by running the following command. This places them inside of thelivenet/node_modules
folder for use.
npm install --save npm install --save https://github.com/litecoin-project/litecore-node#v5.0 https://github.com/litecoin-project/litecore-lib#v5.0
- Edit the config file
litecore-node.json
to reflect your desired network, port, data save location, and route-prefix (if any). Make sure that you addinsight-lite-api
andinsight-lite-ui
to theservices
array, or it will not attempt to default load them.
Sample Config
{
"version": "5.0.0-beta.41",
"network": "testnet",
"port": 3003,
"services": [
"address",
"block",
"db",
"fee",
"header",
"mempool",
"p2p",
"timestamp",
"transaction",
"insight-lite-api",
"insight-lite-ui",
"web"
],
"datadir": "/home/litec/litecore-node/testnet/data",
"servicesConfig": {
"insight-lite-api": {
"routePrefix": "api",
"cwdRequirePath": "node_modules/insight-lite-api"
},
"insight-lite-ui": {
"routePrefix": "",
"apiPrefix": "api",
"cwdRequirePath": "node_modules/insight-lite-ui"
}
}
}
- Install both
insight-lite-ui
andinsight-lite-api
by running the following command
npm install --save https://github.com/litecoin-project/insight-lite-ui#v5.0 https://github.com/litecoin-project/insight-lite-api#v5.0
- Startup the node and start it syncing
./node_modules/litecore-node/bin/litecore-node start
- The blocks should start downloading. After it seems like all the blocks have been successfully downloaded, restart the server.
- Test to make sure that the UI works and that blocks are still being downloaded. Also test to make sure mempool transactions are being streamed in. If they are not, restart the server.
To restart the server try the following:
- Press
ctrl+c
- If that does not stop it after a few seconds, press
ctrl+\
to attempt a second gentle quit.
Having issues where you can't seem to get insight-lite-api
and insight-lite-ui
working? Try running the following install command inside of the testnet
node folder.
npm install --save https://github.com/litecoin-project/litecore-node#v5.0 https://github.com/litecoin-project/litecore-lib#v5.0 https://github.com/litecoin-project/insight-lite-ui#v5.0 https://github.com/litecoin-project/insight-lite-api#v5.0
-
Make sure you have Node v8.11.3 or later installed and accessable.
-
Create a directory to store everything in
mkdir flocore
- Go into the created directory
cd flocore
- Install
flocore
by running the following command
npm install flocore
- Create a
flocore
node by running the following command.
./node_modules/flocore/bin/flocore create livenet
- Go into the
livenet
directory that was just created.
cd livenet
- Edit the config file
flocore-node.json
to reflect your desired network, port, data save location, and route-prefix (if any). Make sure that you addflosight-api
andflosight-ui
to theservices
array, or it will not attempt to default load them.
Sample Config
{
"version": "5.0.0-beta.44",
"network": "livenet",
"port": 3001,
"services": [
"address",
"block",
"db",
"fee",
"header",
"mempool",
"p2p",
"timestamp",
"transaction",
"flosight-api",
"flosight-ui",
"web"
],
"datadir": "/home/floc/flocore/livenet/data",
"servicesConfig": {
"flosight-api": {
"routePrefix": "api",
"cwdRequirePath": "node_modules/flosight-api"
},
"flosight-ui": {
"routePrefix": "",
"apiPrefix": "api",
"cwdRequirePath": "node_modules/flosight-ui"
}
}
}
- Install both
flosight-ui
andflosight-api
by running the following command
npm install --save flosight-ui flosight-api
- Startup the node and start it syncing
./node_modules/flocore-node/bin/flocore-node start
- The blocks should start downloading. After it seems like all the blocks have been successfully downloaded, restart the server.
- Test to make sure that the UI works and that blocks are still being downloaded. Also test to make sure mempool transactions are being streamed in. If they are not, restart the server.
To restart the server try the following:
- Press
ctrl+c
- If that does not stop it after a few seconds, press
ctrl+\
to attempt a second gentle quit.