@@ -21,8 +21,7 @@ export class SetupGuide {
2121 const template = getTemplate ( templateName ) ;
2222 if ( ! template || template . type !== "remote" ) return ;
2323
24- console . log ( ) ;
25- console . log ( chalk . blue . bold ( "📚 Setup Instructions\n" ) ) ;
24+ console . log ( chalk . bold ( "\n[" + chalk . blue ( "→" ) + "] Next Steps\n" ) ) ;
2625
2726 if ( templateName === "counter" ) {
2827 this . displayCounterInstructions ( projectName , packageManager ) ;
@@ -47,70 +46,49 @@ export class SetupGuide {
4746 : "bun install" ;
4847 const runCmd = pm === "npm" ? "npm run" : pm ;
4948
50- console . log ( chalk . white . bold ( "📂 Project Structure:" ) ) ;
51- console . log (
52- chalk . gray ( " contract/ - Smart contract in Compact language" )
53- ) ;
54- console . log ( chalk . gray ( " counter-cli/ - Command-line interface" ) ) ;
49+ console . log ( chalk . gray ( " project structure:" ) ) ;
50+ console . log ( chalk . gray ( " ├─ contract/ smart contract (compact)" ) ) ;
51+ console . log ( chalk . gray ( " └─ counter-cli/ cli interface" ) ) ;
5552 console . log ( ) ;
5653
57- console . log ( chalk . white . bold ( "🚀 Getting Started:\n" ) ) ;
58-
59- console . log ( chalk . yellow ( "1." ) + " Navigate to your project:" ) ;
60- console . log ( ` ${ chalk . cyan ( `cd ${ projectName } ` ) } ` ) ;
61- console . log ( ) ;
62-
63- console . log ( chalk . yellow ( "2." ) + " Install dependencies:" ) ;
64- console . log ( ` ${ chalk . cyan ( installCmd ) } ` ) ;
65- console . log ( ) ;
66-
67- console . log ( chalk . yellow ( "3." ) + " Compile the smart contract:" ) ;
68- console . log ( ` ${ chalk . cyan ( `cd contract && ${ runCmd } compact` ) } ` ) ;
54+ console . log ( chalk . gray ( " $ " ) + chalk . cyan ( `cd ${ projectName } ` ) ) ;
55+ console . log ( chalk . gray ( " $ " ) + chalk . cyan ( installCmd ) ) ;
6956 console . log (
70- chalk . gray ( " (First time may download ~500MB of ZK parameters)" )
57+ chalk . gray ( " $ " ) + chalk . cyan ( `cd contract && ${ runCmd } compact` )
7158 ) ;
72- console . log ( ) ;
73-
74- console . log ( chalk . yellow ( "4." ) + " Build the project:" ) ;
75- console . log ( ` ${ chalk . cyan ( `${ runCmd } build` ) } ` ) ;
76- console . log ( ` ${ chalk . cyan ( `cd ../counter-cli && ${ runCmd } build` ) } ` ) ;
77- console . log ( ) ;
78-
7959 console . log (
80- chalk . yellow ( "5." ) + " Start the proof server (in a new terminal):"
60+ chalk . gray ( " (downloads ~500MB zk parameters on first run)" )
8161 ) ;
62+ console . log ( chalk . gray ( " $ " ) + chalk . cyan ( `${ runCmd } build` ) ) ;
8263 console . log (
83- chalk . cyan (
84- " docker run -p 6300:6300 midnightnetwork/proof-server -- 'midnight-proof-server --network testnet'"
85- )
64+ chalk . gray ( " $ " ) + chalk . cyan ( `cd ../counter-cli && ${ runCmd } build` )
8665 ) ;
87- console . log ( chalk . gray ( " Keep this running!" ) ) ;
8866 console . log ( ) ;
8967
90- console . log ( chalk . yellow ( "6." ) + " Run the Counter DApp:" ) ;
68+ console . log ( chalk . bold ( "[" + chalk . magenta ( "i" ) + "] Proof Server\n" ) ) ;
9169 console . log (
92- ` ${ chalk . cyan ( `cd counter-cli && ${ runCmd } start-testnet-remote` ) } `
70+ chalk . gray ( " $ " ) +
71+ chalk . cyan (
72+ "docker run -p 6300:6300 midnightnetwork/proof-server -- 'midnight-proof-server --network testnet'"
73+ )
9374 ) ;
75+ console . log ( chalk . gray ( " keep this terminal running" ) ) ;
9476 console . log ( ) ;
9577
96- console . log ( chalk . magenta . bold ( "💡 Important Notes: \n" ) ) ;
78+ console . log ( chalk . bold ( "[" + chalk . green ( "▶" ) + "] Run Application \n") ) ;
9779 console . log (
98- chalk . gray (
99- " • You'll need to create a wallet and fund it from the faucet"
100- )
80+ chalk . gray ( " $ " ) +
81+ chalk . cyan ( `cd counter-cli && ${ runCmd } start-testnet-remote` )
10182 ) ;
102- console . log (
103- chalk . gray ( " • Testnet faucet: https://midnight.network/test-faucet" )
104- ) ;
105- console . log ( chalk . gray ( " • Funding takes 2-3 minutes to process" ) ) ;
10683 console . log ( ) ;
10784
108- console . log ( chalk . white . bold ( "📖 Full Guide:" ) ) ;
85+ console . log ( chalk . bold ( "[" + chalk . yellow ( "!" ) + "] Important\n" ) ) ;
86+ console . log ( chalk . gray ( " • create wallet and fund from faucet" ) ) ;
10987 console . log (
110- chalk . gray (
111- " See README.md for detailed instructions and troubleshooting"
112- )
88+ chalk . gray ( " • testnet faucet: https://midnight.network/test-faucet" )
11389 ) ;
90+ console . log ( chalk . gray ( " • funding takes 2-3 minutes" ) ) ;
91+ console . log ( chalk . gray ( " • see README.md for detailed guide" ) ) ;
11492 console . log ( ) ;
11593 }
11694
@@ -121,19 +99,11 @@ export class SetupGuide {
12199 const template = getTemplate ( templateName ) ;
122100 if ( ! template ) return ;
123101
124- console . log ( ) ;
125- console . log ( chalk . green ( "✓ Successfully cloned example project!" ) ) ;
126- console . log ( ) ;
102+ console . log ( chalk . bold ( "\n[" + chalk . green ( "✓" ) + "] Clone Complete\n" ) ) ;
127103
128104 if ( template . requiresCompactCompiler ) {
129- console . log (
130- chalk . yellow (
131- "⚠ This project requires the Compact compiler to be installed."
132- )
133- ) ;
134- console . log (
135- chalk . gray ( " Follow the setup instructions below to install it." )
136- ) ;
105+ console . log ( chalk . gray ( " compact compiler required" ) ) ;
106+ console . log ( chalk . gray ( " follow setup instructions below" ) ) ;
137107 console . log ( ) ;
138108 }
139109 }
0 commit comments