This service is used to access to the colored indexed database and retrieve all the colored asset informations.
API documentation is based on a swagger.json
file, which follows
OpenAPI Specification 3.0.3, and is available at /api-docs
.
- 512MB RAM
- dual core CPU
Put a config-local.js
file in the project root directory
(/srv/app/config-local.js
in docker) to change the default configuration.
See the following example (containing default values):
module.exports = {
env: 'production',
testnet: false,
cexplorer: {
url: 'https://cexplorer.example.com',
},
logLevel: 'info',
port: 8080,
}
To build the service, run:
npm install
To run the service:
npm start
In order to build a docker image of this project, run:
docker build -t <tag> -f docker/Dockerfile .
To run the docker image:
docker run --rm -p 8080:8080 -v $(pwd)/config-local.js:/srv/app/config-local.js <tag>
This software is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.