Skip to content

sheremet/blockchain-wallet-api

Repository files navigation

Blockchain

Configuring

For development please edit config/default.yaml:

express:
    port: 8080
    debug: 5858
    host: localhost

auth:
    jwt_secret: SuperSecret

mongo:
    urlClient: mongodb://<dbuser>:<dbpassword>@<dbhost>:<dbport>/blockchain

You can also use .env file in root of the project for set environment variables which overrides config/default.yaml according to config/custom-environment-variables.yaml

For production please specify environment variables which override the config/custom-environment-variables.yaml:

EXPRESS_PORT=9000
EXPRESS_HOST=192.168.1.206
EXPRESS_DEBUG=5858
JWT_SECRET=SuperSecretToken
MONGODB_URL=mongodb://<dbuser>:<dbpassword>@<dbhost>:<dbport>/blockchain_prod
LOG_LEVEL=warn

You can also use .env file in root of the project for set environment variables

Starting project in production mode

npm start

Starting project in Dev mode

npm run start:dev

Starting project in Debug mode

npm run start:debug