This is a part of the CasperSign project.
This repository holds the back end services for the application.
The CasperSign project consists of the following repositories:
- https://github.com/chronologic/caspersign-app-ui
- https://github.com/chronologic/caspersign-validator-ui
- https://github.com/chronologic/caspersign-signer-ui
- https://github.com/chronologic/caspersign-server (this repository)
- https://github.com/chronologic/caspersign-contract
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 |
Run npm run build
.
Run npm start
.