@@ -51,31 +51,40 @@ Your generated project includes:
5151Once your project is created, you can run:
5252
5353### ` npm run dev `
54+
5455Starts the development server with:
56+
5557- Docker-based proof server on port 6300
5658- File watcher for automatic recompilation
5759- Hot reloading for contract changes
5860
5961### ` npm run setup `
62+
6063Complete setup pipeline:
64+
61651 . Compiles Compact contracts
62662 . Builds TypeScript to JavaScript
63673 . Deploys contracts to the network
6468
6569### ` npm run cli `
70+
6671Opens an interactive command-line interface to:
72+
6773- Connect your wallet
6874- Store messages in the contract
6975- Retrieve stored messages
7076- Test contract functionality
7177
7278### ` npm run compile `
79+
7380Compiles your Compact smart contracts from ` contracts/ ` to ` contracts/managed/ `
7481
7582### ` npm run build `
83+
7684Builds your TypeScript source code to JavaScript in the ` dist/ ` directory
7785
7886### ` npm run deploy `
87+
7988Deploys your compiled contract to the Midnight testnet
8089
8190## Project Structure
@@ -102,7 +111,9 @@ my-midnight-app/
102111## Templates
103112
104113### Hello World (Default)
114+
105115A simple message storage contract demonstrating:
116+
106117- State management
107118- Public and private data
108119- Contract deployment
@@ -166,7 +177,9 @@ PROOF_SERVER_URL=http://localhost:6300
166177## Troubleshooting
167178
168179### Port 6300 already in use
180+
169181If you see "Bind for 0.0.0.0:6300 failed: port is already allocated":
182+
170183``` bash
171184# Stop the existing proof server
172185docker ps
@@ -176,14 +189,18 @@ docker stop <container-id>
176189```
177190
178191### Module resolution errors
192+
179193Make sure you're using Node.js 18+ and the project was created with the latest version:
194+
180195``` bash
181196node --version
182197npx create-mn-app@latest my-app
183198```
184199
185200### Docker not running
201+
186202Ensure Docker Desktop is running before starting the development server:
203+
187204``` bash
188205docker --version
189206```
@@ -206,4 +223,3 @@ MIT © [Olanetsoft](https://github.com/Olanetsoft)
206223---
207224
208225Built with ❤️ for the Midnight Network community 🌙✨
209-
0 commit comments