caspersign-server

This is a part of the CasperSign project.

This repository holds the back end services for the application.

Database diagram

DB Diagram

Project overview

The CasperSign project consists of the following repositories:

🔧 Environment variables

This repo uses dotenv to load environment variables.

For development, and .env file should be created based on the .env.example template file. The .env file should never be commited.

In production, environment variables can be injected directly.

Below is a list of possible environment variables.

Name Type Default Description
LOG_LEVEL string info Standard npm log level
DATABASE_URL string PostgreSQL connection string
HS_TEST_MODE boolean HelloSign API test mode
HS_CLIENT_ID string HelloSign client_id
HS_API_KEY string HelloSign API key
HS_OAUTH_SECRET string HelloSign OAuth secret
CASPER_PUB_PEM string Casper account public key in PEM format
CASPER_PK_PEM string Casper account private key in PEM format
CASPER_NODE_URL string URL pointing to Casper RPC node
CASPER_CHAIN_NAME string casper / casper-test / ...
CASPER_CONTRACT_HASH string Hash of CasperSign smart contract
POSTSIGN_REDIRECT_URL string URL pointing to CasperSign validator

🚧 Building

Run npm run build.

Development

Run npm start.