API Services for Omni
NOTE: The following is a work in progress and should not be considered production ready/usable
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
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
Launch the api using bash startApi.sh