Skip to content

MeshJS/midnight-starter-template

Repository files navigation

🚀 MESH - EDDA - Midnight Starter Template

📦 Prerequisites

🛠️ Setup

1️⃣ Install Git LFS

# Install and initialize Git LFS
sudo dnf install git-lfs  # For Fedora/RHEL
git lfs install

2️⃣ Install Compact Tools

# 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

3️⃣ Install Node.js and docker

4️⃣ Verify Installation

# Check versions
node -v  
npm -v   
docker -v
git lfs version
compact check  # Should show latest version

📁 Project Structure

├── counter-cli/         # CLI tools
├── counter-contract/    # Smart contracts
└── frontend-vite-react/ # React application

🔗 Setup Instructions

Install Project Dependencies and compile contracts

 # In one terminal (from project root)
 npm install
 npm run build

Setup Env variables

  1. Create .env file from template under counter-cli folder

  2. Create .env file from template under frontend-vite-react folder

Start Development In Preview Network or

# In one terminal (from project root)
npm run dev:frontend

Start Development In Undeployed Network

# In one terminal (from project root)
npm run setup-standalone

# In another terminal (from project root)
npm run dev:frontend

Built with ❤️ by Mesh × Edda Labs

About

Mesh Midnight starter template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published