Quickstart with React
Concise. Get started with Dojo in minutes.
This assumes knowledge of React and the Dojo CLI.
Prerequisites:
- Create project
npx @dojoengine/create-dojo start -t example-vite-react-sdk
- Setup client
cd client
pnpm i
pnpm dev
Visit http://localhost:5173
to view the project. It will not be connected to the network yet.
- Setup contracts
# In contracts directory
sozo build
# In new terminal
katana --disable-fee --allowed-origins "*"
- Connect to the development network and indexer
# In new terminal
sozo migrate apply
- Return to the client and refresh the page. You should now see the project connected to the network and indexed!