Docker setup
Installation steps
Clone Asylum UI repository.
Create
.env.local
withinasylum-ui/packages/connection-library
with the following content:asylum-ui/packages/connection-library/.env.localSEEDER_MNEMONIC = eternal danger cherry radar exit damage slam hip say relief awesome middle
ASYLUM_NODE_URL = ws://127.0.0.1:9944
IPFS_NODE_URL = http://127.0.0.1:5001Create
.env.local
withinasylum-ui/packages/creator-studio
with the following content:asylum-ui/packages/creator-studio/.env.localREACT_APP_MINTER_MNEMONIC = eternal danger cherry radar exit damage slam hip say relief awesome middle
infoYou can specify any mnemonic seed phrase, but it have to coincide in
connection-library
andcreator-studio
packagesInstall Docker and
docker-compose
and run.Execute
yarn docker:up
in a root folder.cautionMake sure that port
3000
onlocalhost
if free; otherwise web app won't start properly. You can restart asylum-ui container when the port is freedImport account to PolkadotJS extension from seed phrase:
eternal danger cherry radar exit damage slam hip say relief awesome middle
These steps will set up and run three containers and automatically seed the mock data.
You might receive CORS policy error in Creator Studio, when you try to upload assets to IPFS.
To avoid this issue, execute the following command from asylum-ui
root when Docker is up:
- Unix
- Windows
docker-compose exec ipfs ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
docker-compose exec ipfs ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '[\"*\"]'
and then restart ipfs
container:
yarn docker:restart:ipfs
Reseed storage
If you want to reset node storage, simply restart node-asylum
container and reseed the data.
Run the following commands from asylum-ui
root:
yarn docker:restart:node
yarn docker:seed
You can run yarn docker:seed:with-items
instead to seed Items as well