Awesome
💠scaffold-stark
scaffold-stark is a forkable StarkNet dev stack focused on fast product iterations, inspired by scaffold-eth.
Drop in your Cairo smart contracts and immediately compile, deploy and interact with them through a reusable frontend UI.
<img width="1221" alt="image" src="https://user-images.githubusercontent.com/27808560/179943811-f5749cdb-ae3d-4b4d-ae6a-0fc2b3e59e3c.png"> <img width="1215" alt="image" src="https://user-images.githubusercontent.com/27808560/179943849-1bb59ae8-adb7-44c9-b1b9-ef37c1f43d26.png">Link to the product demo.
Requirements:
- Node.js
- Python venv
- Yarn
- Git
Setup / Installation
- Clone / fork 💠scaffold-stark:
https://github.com/parketh/scaffold-stark
- Run venv and install packages:
python3 -m venv cairo_venv
source cairo_venv/bin/activate
pip install -r requirements.txt
- Install JS packages with yarn:
yarn install
- Start starknet-devnet in first terminal window while running cairo_venv (http://localhost:5050)
starknet-devnet
- Start local server in second terminal window - used to handle RPC calls (http://localhost:3001)
yarn server
- Start frontend app in third terminal window (http://localhost:3000)
yarn dev
- Edit your smart contracts in the
contracts/
folder and compile them withstarknet-compile
(see docs)
npx hardhat starknet-compile [PATH...]
- Open http://localhost:3000 to see the app. Add custom frontend as you wish (Next.js + TailwindCSS).