Skip to content

X-CASH-official/API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

API using the api.xcash.foundation

Please read the documentation to use the API

The API covers:
Blockchain
DPOPS
Namespace
Xpayment Twitter

How to build from source

install go
download the latest go version from https://go.dev/doc/install

untar it
tar -xf go* && rm go*.tar.gz && mv go /usr/local/

edit the path
sudo nano ~/.profile

add this line to the end of the file
export PATH=$PATH:/usr/local/go/bin

save the file
source ~/.profile

verify the install
go version

Install mongo

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt update
sudo apt install mongodb-org

Install
git clone https://github.com/X-CASH-official/turbotx-backend.git && cd API

copy the systemd file
cp -a API.service /lib/systemd/system/ && sudo systemctl daemon-reload

Build the program
make clean ; make release

Run the program
systemctl start API

About

API using the api.xcash.foundation

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published