Skip to content

FeatherCoin/omnifeatherapi

 
 

Repository files navigation

omniapi

API Services for Omni

NOTE: The following is a work in progress and should not be considered production ready/usable

Install instructions

Follow nginx instructions to install nginx mainline branch 1.13.8 or greater

  • When done reference etc/nginx/sites-available/README for additional instructions

Install python pip and the python packages from pip

  • sudo apt install python-pip
  • sudo pip install -r requirements.txt

Config files needed

To connect to and use the omnicored client define the following file with the following structure.

cat ~/.bitcoin/bitcoin.conf
rpcuser=
rpcpassword=
rpcport=
rpcconnect=<ip address of host, only needed if not localhost>

To connect to the database define the following file with the following structure:

cat ~/.omni/sql.conf
sqluser=
sqlport=
sqlconnect=
sqldatabase=
sqlpassword=

Copy api/config.py.example to api/config.py and update it accordingly

Running

Launch the api using bash startApi.sh

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.7%
  • HTML 22.7%
  • Shell 0.6%