Skip to main content

Manual installation

info

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

  1. Build and run Asylum node: node-asylum --dev
  1. Install and run the local IPFS node : ipfs daemon

    caution

    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:

    docker-compose exec ipfs ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'

    and then restart ipfs container:

    yarn docker:restart:ipfs
  2. Clone Asylum UI repository and create .env.local within asylum-ui/packages/creator-studio with the following content:

    asylum-ui/packages/creator-studio/.env.local
    REACT_APP_MINTER_MNEMONIC = eternal danger cherry radar exit damage slam hip say relief awesome middle
  3. Install dependencies: yarn

  4. Start Creator Studio locally: yarn start

Seed storage

We created 2 seed scripts in connection-library for development and tutorials.

  1. Navigate to asylum-ui/packages/connection-libary and create .env.local file with the following content:

    asylum-ui/packages/connection-libary/.env.local
    SEEDER_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:5001
  2. Run yarn seed or yarn seed:demo

  3. Import account to PolkadotJS extension from seed phrase:

    eternal danger cherry radar exit damage slam hip say relief awesome middle
    tip

    Seeded 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: