🥷 Try it live — no local setup. ICP Ninja is a web-based IDE that builds and deploys this project to the mainnet for free, right in your browser. Click the badge above, or hit Deploy if you're already in Ninja. To build and run it locally instead, follow the steps below.
A minimal React application hosted entirely onchain on ICP. It demonstrates how to deploy a static frontend as an asset canister — no backend needed.
The /frontend folder contains the web assets for the application's user interface, built with React, Vite, and Tailwind CSS. The frontend is deployed as an asset canister — no backend canister is needed.
Clone the example project:
git clone https://github.com/dfinity/examples
cd examples/hosting/reactStart the local network:
icp network start -dDeploy the canister:
icp deployThe URL for the frontend depends on the canister ID. When deployed, the URL will look like this:
http://{canister_id}.localhost:8000
Stop the local network when done:
icp network stop