Five Bells Wallet
npm install
npm run dev
npm run build
npm run start
Use the following configuration options as environment variables:
API_PRIVATE_HOSTNAME
Private API hostnameAPI_HOSTNAME
Publicly visible API hostnameAPI_PORT
Publicly visible API portAPI_DB_URI
(e.g.: postgres://root:password@localhost/wallet) URI for connecting to a database.API_SESSION_SECRET
App session secretAPI_LEDGER_URI
Ledger URI (requests go to this uri)API_LEDGER_PUBLIC_URI
Ledger public URIAPI_LEDGER_ADMIN_NAME
Ledger admin usernameAPI_LEDGER_ADMIN_PASS
Ledger admin passwordAPI_CONDITION_SECRET
Condition secretAPI_RELOAD
Turn on/off the reload endpointAPI_TRACK_GA
Google Analytics Tracking IDAPI_TRACK_MIXPANEL
Mixpanel Tracking IDAPI_GITHUB_CLIENT_ID
Github application client id (used for github oauth)API_GITHUB_CLIENT_SECRET
Github application client secret (used for github oauth)API_MAILGUN_API_KEY
Mailgun api key (for sending emails)API_MAILGUN_DOMAIN
One of the domains attached to the Mailgun accountCLIENT_HOST
Publicly visible hostnameCLIENT_PORT
Publicly visible portSENTRY_URI
Sentry tracking uri (getsentry.com)WALLET_FORCE_HTTPS
Force all connections to use HTTPSWALLET_TRUST_XFP_HEADER
Trust theX-Forwarded-Proto
header
http://interledger.org/five-bells-wallet/apidoc
Five Bells Wallet supports webfinger lookups.
Example request
curl -X GET
https://wallet.example/.well-known/webfinger?resource=acct:[email protected]
Example response
HTTP/1.1 200 OK
{
"subject": "acct:[email protected]",
"links": [
{
"rel": "http://webfinger.net/rel/ledgerUri",
"href": "http://wallet.example/ledger"
},
{
"rel": "http://webfinger.net/rel/ledgerAccount",
"href": "http://wallet.example/ledger/accounts/alice"
},
{
"rel": "http://webfinger.net/rel/socketIOUri",
"href": "http://wallet.example/api/socket.io"
}
]
}
In development, Redux Devtools are enabled by default. You can toggle visibility and move the dock around using the following keyboard shortcuts:
- Ctrl+H Toggle DevTools Dock
- Ctrl+Q Move Dock Position
- see redux-devtools-dock-monitor for more detail information.
npm install
generates a src/theme/variables.scss
which contains the theme colors. You can manually edit it.