Skip to content
37 changes: 33 additions & 4 deletions docs/getting-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,42 @@ npx create-mn-app [project-name]
Ensure you replace `[project-name]` with the name of your new DApp.
:::

The CLI tool prompts you to select a template. Available options include:
The CLI tool first prompts you to choose the type of project you want to create:

- Contract
- Full DApp

If you are new to Midnight development, then starting with _contract_ is recommended. It provides a minimal setup that focuses on compiling and deploying a Compact smart contract before working with a full application scaffold.

#### Contract

Selecting **Contract** scaffolds a minimal project for deploying a Compact smart contract.

You are prompted to choose a contract template. Currently the available option is:

- Hello world
- Counter

The Hello world contract is a basic example that demonstrates how to deploy a Compact contract and interact with it from the CLI.

#### Full DApp

Selecting **Full DApp** scaffolds a complete decentralized application with contract logic, deployment scripts, and a CLI for interacting with the contract.

You are prompted to choose a DApp template. Available options include:

- Counter
- Bulletin board

Select the Hello world template and follow the prompts to complete the setup. You should see the following output:
The Counter template is an example that demonstrates how to maintain and update shared contract state by incrementing or decrementing a counter.

The Bulletin board template is a privacy-preserving message board that allows users to post and remove messages using zero-knowledge (ZK) proofs.

For this guide, select **Contract** at the first prompt and then choose **Hello world** at the template selection prompt. Follow the remaining prompts to complete the setup.

If you select **Full DApp**, then refer to the dedicated tutorials for each template:

- [Counter DApp](../examples/dapps/counter)
- [Bulletin board DApp](../examples/dapps/bboard)

```
Creating a new Midnight app in /path/to/my-app.
Expand Down Expand Up @@ -106,7 +135,7 @@ npm run setup

This script starts the proof server, compiles the contract, and deploys the contract to the Preprod network.

The CLI prompts you to create a new wallet or restore an existing wallet. If you choose to create a new wallet, the CLI generates a new wallet seed and displays the wallet address. Save the wallet seed in a secure location. You'll need it to restore your wallet.
The CLI prompts you to create a new wallet or restore an existing wallet. If you choose to create a new wallet, then the CLI generates a new wallet seed and displays the wallet address. Save the wallet seed in a secure location. You'll need it to restore your wallet.

:::note
You'll need to fund your wallet with tNIGHT tokens from the [Preprod faucet](https://faucet.preprod.midnight.network/). tNIGHT is used to generate tDUST, which is required to pay for transaction fees on the Midnight blockchain.
Expand Down
Loading