Giter Site home page Giter Site logo

codechain-keystore-server's Introduction

CodeChain keystore server Build Status

CodeChain keystore server is a private key management server. It saves CodeChain's asset transfer address safely in a database. You should use this keystore server to save your private key safely in CodeChain SDK.

Installation

Prerequisite

  1. Install PostgreSQL

Initial Configuration

  1. Install dependencies with yarn install
  2. Execute the following SQL queries
CREATE DATABASE "codechain-keystore";
CREATE USER "codechain" WITH ENCRYPTED PASSWORD 'DATABASE_PASSWORD';
GRANT ALL PRIVILEGES ON DATABASE "codechain-keystore" TO "codechain";
  1. Create config/local.json with the following data
{
    "knex": {
        "connection": {
            "password": "DATABASE_PASSWORD"
        }
    }
}
  1. Update the database with yarn migrate
  2. Seed the database with yarn seed

Usage

  • yarn start to start a server
  • yarn load to load local keystore to database
  • yarn lint to lint the entire source code
  • yarn fmt to apply formatters
  • yarn migrate to migrate the database
  • yarn rollback to rollback the database
  • yarn seed to reset and seed the database

Check if the server is alive

You can send a ping to the server to check if it's up and running.

curl http://localhost:7007/ping

codechain-keystore-server's People

Contributors

dependabot[bot] avatar joojis avatar kseo avatar majecty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

codechain-keystore-server's Issues

Document APIs

Document the endpoints of codechain-keystore-server.

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.