Manual installation
Tested on:
- node v18.9.0
- npm v8.19.1
You have set up and run three processes in the background:
- Asylum node
- Local IPFS daemon
- Creator Studio React app
Installation steps
- Build and run Asylum node:
node-asylum --dev
Install and run the local IPFS node :
ipfs daemoncautionYou 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-uiroot 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
ipfscontainer:yarn docker:restart:ipfsClone Asylum UI repository and create
.env.localwithinasylum-ui/packages/creator-studiowith the following content:asylum-ui/packages/creator-studio/.env.localREACT_APP_MINTER_MNEMONIC = eternal danger cherry radar exit damage slam hip say relief awesome middleInstall dependencies:
yarnStart Creator Studio locally:
yarn start
Seed storage
We created 2 seed scripts in connection-library for development and tutorials.
Navigate to
asylum-ui/packages/connection-libaryand create.env.localfile with the following content:asylum-ui/packages/connection-libary/.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:5001Run
yarn seedoryarn seed:demoImport account to PolkadotJS extension from seed phrase:
eternal danger cherry radar exit damage slam hip say relief awesome middletipSeeded data will be lost after each restart of
node-asylum. To keep your data after a restart, you can use--base-pathoption../node-asylum --dev --base-path /tmp/node-asylum
Tutorials
For Developers
The project utilizes Prettier code formatting tools (check rules in .prettierrc).
Before starting development, please make sure you're familiar with the tools used across the project: