Micro-service used to create accounts.
This micro-service depends on the following environment variables:
The above variable is used internally by the contract helper, it does not have to correspond to the external IP or DNS name and can link to the host machine running the Docker container.
production. Node.js environment (should be
productionfor production use,
developmentfor local development)
ACCOUNT_CREATOR_KEY-- JSON key of account used to create accounts
ACCOUNT_RECOVERY_KEY-- JSON key of account used to recover accounts
TWILIO_FROM_PHONE– phone number from which to send SMS with security code (international format, starting with
TWILIO_ACCOUNT_SID– account SID from Twilio (used to send security code)
TWILIO_AUTH_TOKEN– auth token from Twilio (used to send security code)
- Install latest Node.js LTS release.
- Install HTTPie.
accounts_development Postgres DB with
npm run migrate
You can also modify DB config in
config/config.js to use different connection settings, etc.
Make sure that before running service there are appropriate env variables set (can be put in
.env file in root directory of project):
http post http://localhost:3000/account newAccountId=nosuchuseryet.near newAccountPublicKey=22skMptHjFWNyuEWY22ftn2AbLPSYpmYwGJRGwpNHbTV