There is public/env.json
file which contains BASE_API_URL
and DEFAULT_NETWORKS
variables.
BASE_API_URL
will be used for the address of the current stand.
DEFAULT_NETWORKS
variable has the following format:
"DEFAULT_NETWORKS": [
{
"chain": "SORA-staging Testnet",
"name": "SORA",
"address": "wss://ws.stage.sora2.soramitsu.co.jp"
}
]
"chain"
is used as the chain name.
"name"
is used as the node name.
"address"
is used for the address of the node to which the frontend project will be connected.
DEFAULT_NETWORKS[0]
must be a Soramitsu trusted node. App used it's genesisHash
to check custom user node for connection
CHAIN_GENESIS_HASH
should be defined for 'prod' & 'stage' environments, to not polling nodes for getting it (because genesis hash for these env's not changing).
yarn install
yarn serve
yarn build
yarn test:unit
yarn test:e2e
yarn test:all
yarn lint
yarn electron:serve
yarn electron:build
yarn electron:build --linux --mac zip dmg --win portable --x64 --ia32
Executable files (.exe
, .dmg
or .snap
) will be located in dist_electron
folder.
- Add your translations to
src/lang/messages.ts
. - Run script to generate
en.json
file fromsrc/lang/messages.ts
. This will updateen.json
file with new translations, arranged in alphabetical order.
yarn lang:generate
- Load updated
en.json
file toLokalise
. - Add translations for other languages in
Localise
. - Download translations from
Localise
, update these files in project. - Run script to order translations alphabetical in
en.json
file (Localise has it's own translations order).
yarn lang:fix