Nodejs, Docker, Sunodo Sunodo Docs.
After installing the necessary packages, run the following command to set up the local blockchain and smart contracts:
npm i
sunodo run --no-backend --block-time 1
To get the node backend code up and running, use:
npm run dev
This is responsible for simulating and syncing all of the clients with game state. Using Colyseus, Websockets, Node.js, etc.
cd src/indexer
npm i
npm run dev
Navigate to the front end directory and start the development server:
cd src/front
npm i
npm run dev
Navigate to the front end directory, install dependencies, specify your variables, and deploy the faucet server.(Use the private key of address 1 within the mock mnemonic).
pnpm install @latticexyz/faucet@next
export PORT=2001
export RPC_HTTP_URL=http://localhost:8545
export FAUCET_PRIVATE_KEY=<PRIVATE_KEY>
export DRIP_AMOUNT_ETHER=100
pnpm faucet-server
Please note that commands should be run in the terminal and might require administrative privileges depending on your system setup.
This document was last edited on the date the screenshot was taken.