GithubHelp home page GithubHelp logo

inbitcoin / ccoinsd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colored-coins/coloredcoinsd

0.0 1.0 0.0 319 KB

RESTful web server for Colored Coins protocol operations, implemented in Node.js

License: Apache License 2.0

JavaScript 86.60% Dockerfile 13.40%

ccoinsd's Introduction

ccoinsd - Colored Coins API service

This service is used to access to the colored indexed database and retrieve all the colored asset informations.

API documentation

API documentation is based on a swagger.json file, which follows OpenAPI Specification 3.0.3, and is available at /api-docs.

Minimum requirements

  • 512MB RAM
  • dual core CPU

Configuration

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,
}

Build and run

locally

To build the service, run:

npm install

To run the service:

npm start

docker

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>

License

This software is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.