pnpx prisma migrate deployCreate a migration from changes in Prisma schema, apply it to the database
pnpx prisma migrate dev --name initto drop everything and migrate from scratch in dev
pnpx prisma migrate resetto reset database in dev use this
pnpm prisma db push --force-resetIf you manually changed something like a column name in migration file and models and don't want to write a new migration use this. this will regenrate the prisma client. it is located in /node_modules/@prisma/client so you wont see this in git
pnpx prisma generate- Go to Reown Cloud and create a new project.
- Copy your
Project ID - Rename
.env.exampleto.envand paste yourProject IDas the value forNEXT_PUBLIC_PROJECT_ID - Run
pnpm installto install dependencies - Run
pnpm run devto start the development server
Setup Instructions Set up the Rust/WASM environment: First, make sure you have Rust and wasm-pack installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh cargo install wasm-pack Copy Insert
Create the WASM module directory structure: mkdir -p wasm/src Copy Insert
Place the Rust code in /wasm/src/lib.rs and the Cargo.toml in /wasm/Cargo.toml Build the WASM module: cd wasm wasm-pack build --target web
i use cloudflared on my server to quickly expose it to the internet and run the app on pnpm run dev, so i can push my changes to server using rsync and get instant results on warpcast
Install WAGMI CLI too
Clone the contracts repo from Mouch-Knight-Contracts and follow its readme file to compile the contracts.
set the path to the contracts repo using NEXT_FOUNDRY_PROJECT_PATH variable
then in this project run
FOUNDRY_PROJECT_PATH='/path/to-foundry-project' wagmi generate