You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Alexis Hernandez 6fd6db473b server: Add the AMOUNT_TYPE domain to the evolution schema (#35) 7 years ago
..
app server: Support P2WPKH address format (#33) 7 years ago
conf server: Add the AMOUNT_TYPE domain to the evolution schema (#35) 7 years ago
project server: Update play framework to 2.6.13 7 years ago
test server: Support P2WPKH address format (#33) 7 years ago
.gitignore server: Create the project with a .gitignore 7 years ago
README.md server: Update README.md 7 years ago
build.sbt server: Remove legacy seeder tasks (#38) 7 years ago

README.md

XSN Block Explorer - Server

Run

  1. We need the xsn rpc server running, download the latest one from xsn releases, then, start the rpc server with: bin/xsnd -txindex -addressindex -spentindex -rpcport=51473 -rpcuser=dummy -rpcpassword=replaceme

  2. Edit the application.conf.

  • In case you modified the parameters to start the xsn rpc server, update the credentials.

  • Set the credentials to access a postgres database.

  • Replace play.modules.enabled += "com.xsn.explorer.modules.SeederModule" with play.modules.enabled += "com.xsn.explorer.modules.PollingSeederModule".

  1. Run the application with: sbt run

Test

Run the sbt test command to execute the tests.

Deploy

This assumes that you have the following:

  • A linux-based virtual machine prepared with Java 8 and a systemd service called xsn-backend.
  • A system level user called play which belogs to the group nogroup.

Client side

  • Package the application: sbt dist
  • Upload the application: scp target/universal/xsn-block-explorer-0.1.0-SNAPSHOT.zip $SERVER_IP:~/
  • Login into the server: ssh $SERVER_IP.

Server side

  • Unpack the application: sudo unzip ~/xsn-block-explorer-0.1.0-SNAPSHOT.zip -d /home/play/server
  • Update configuration: sudo vim /home/play/server/xsn-block-explorer-0.1.0-SNAPSHOT/conf/application.conf
  • Give permissions: sudo chown -R play:nogroup /home/play/server
  • Restart the service: sudo service xsn-backend restart