Describe brief description about DDK Explorer here
This sections provides details on what you need install on your system in order to run Explorer.
Ubuntu 14.04 x86_64
Ubuntu 16.04 (LTS) x86_64
sudo apt-get install -y python build-essential curl automake autoconf libtool
sudo apt-get install -y git
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sL "https://downloads.lisk.io/scripts/setup_postgresql.Linux" | bash -
sudo -u postgres createuser --createdb $USER
sudo -u postgres createdb <database_name> //DDK_explorer in our system
sudo -u postgres psql -d <database_name> -c "alter user "$USER" with password 'password';"
Ubuntu/Debian:
sudo apt-get install redis-server
Start Redis:
service redis start
Stop Redis:
service redis stop
NOTE: DDK explorer does not run on the redis default port of 6379. Instead it is configured to run on port: 6380. Because of this, in order for Explorer to run, you have one of two options:
- Change the Explorer configuration
Update the redis port configuration in both config.json
and test/data/config.json
. Note that this is the easiest option, however, be mindful of reverting the changes should you make a pull request.
- Change the Redis launch configuration
Update the launch configuration file on your system. Note that their a number of ways to do this. The following is one way:
- Stop redis-server
- Edit the file
redis.conf
and change:port 6379
toport 6380
Ubuntu/Debian: /etc/redis/redis.conf
MacOS: /usr/local/etc/redis.conf
- Start redis-server
Now confirm that redis is running on port 6380:
redis-cli -p 6380
ping
First clone the code:
$ git clone https://github.com/oodlestechnologies/DDKExplorer
Create new file config.json
. A sample copy config-sample.json
is provided with GitHub code. For getting started you can replace config-sample.json
to config.json
. Later, you can change configuration according to your need.
Go to your project folder and run
$ npm install
Once installation steps are completed. You can run your server.
$ node app.js