- A starter template for building on Midnight Network with React frontend and smart contract integration.
- Live Demo → counter.nebula.builders
- Node.js (v23+) & npm (v11+)
- Docker
- Git LFS (for large files)
- Compact (Midnight developer tools)
- Lace (Browser wallet extension)
- Faucet (Preview Network Faucet)
# Install and initialize Git LFS
sudo dnf install git-lfs # For Fedora/RHEL
git lfs install# Install the latest Compact tools
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/midnightntwrk/compact/releases/latest/download/compact-installer.sh | sh# Install the latest compiler
# Compact compiler version 0.27 should be downloaded manually. Compact tools does not support it currently.
compact update +0.27.0# Check versions
node -v
npm -v
docker -v
git lfs version
compact check # Should show latest version├── counter-cli/ # CLI tools
├── counter-contract/ # Smart contracts
└── frontend-vite-react/ # React application
# In one terminal (from project root)
npm install
npm run build-
Create .env file from template under counter-cli folder
-
Create .env file from template under frontend-vite-react folder
# In one terminal (from project root)
npm run dev:frontend# In one terminal (from project root)
npm run setup-standalone
# In another terminal (from project root)
npm run dev:frontend