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 daemon
cautionYou 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
Clone Asylum UI repository and create
.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
Install dependencies:
yarn
Start 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-libary
and create.env.local
file 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 seed
oryarn seed:demo
Import account to PolkadotJS extension from seed phrase:
eternal danger cherry radar exit damage slam hip say relief awesome middle
tipSeeded data will be lost after each restart of
node-asylum
. To keep your data after a restart, you can use--base-path
option../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: