Assist Service provides unparalleled access to the Elastos ecosystem that lets developers connect to any component of Elastos via a simple REST API
To start, clone assist-service repo
git clone https://github.com/tuum-tech/assist-service.git;
cd assist-service;
- Install node(v12 or later) and npm
- Install dependencies
npm i
- Copy example environment file
cp .env.example .env
- Modify .env file with any number of wallets to use
- [OPTIONAL]: If you want to remove previous mongodb data and start fresh, remove the mongodb directory
./setup.sh cleanup
- Start API server
./setup.sh start; npm run dev
For detailed deep-dive of all the API endpionts, you can check out Assist Service Documentation.
To check whether the Assist Service is running:
curl http://localhost:2000/v1/healthCheck/ping
Request type: GET
Url: /v1/healthCheck/ping
Return:
Success: { '_status': 'OK', 'message': 'pong' }
Failure: { '_status': 'ERR', '_error': { 'code': 404, 'message': 'err_message' } }
cp .ebextensions_prod/envvariables.config .ebextensions/envvariables.config
git commit -am "eb deploy"
eb deploy
git reset HEAD^
git checkout .ebextensions/envvariables.config