> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

# Leaderboard tutorial

Build a full-stack DApp from Compact contract to production deployment. Players submit scores with privacy controls and prove ownership of entries using ZK proofs.

[✦](https://docs.midnight.network/tutorials/leaderboard/overview.md)

### [Overview](https://docs.midnight.network/tutorials/leaderboard/overview.md)

[Architecture, prerequisites, and what you build across all four sections of the leaderboard tutorial.](https://docs.midnight.network/tutorials/leaderboard/overview.md)

[Read overview→](https://docs.midnight.network/tutorials/leaderboard/overview.md)

[✦](https://docs.midnight.network/tutorials/leaderboard/smart-contract.md)

### [Smart contract](https://docs.midnight.network/tutorials/leaderboard/smart-contract.md)

[Define structured on-chain data with Map, Counter, and custom structs. Control privacy with disclose() and witness functions.](https://docs.midnight.network/tutorials/leaderboard/smart-contract.md)

[Write the contract→](https://docs.midnight.network/tutorials/leaderboard/smart-contract.md)

[✦](https://docs.midnight.network/tutorials/leaderboard/api-layer.md)

### [TypeScript integration](https://docs.midnight.network/tutorials/leaderboard/api-layer.md)

[Set up the witness provider, contract exports, and a shared API class for deploying and interacting with the contract.](https://docs.midnight.network/tutorials/leaderboard/api-layer.md)

[Build the API→](https://docs.midnight.network/tutorials/leaderboard/api-layer.md)

[✦](https://docs.midnight.network/tutorials/leaderboard/browser-dapp.md)

### [Browser DApp](https://docs.midnight.network/tutorials/leaderboard/browser-dapp.md)

[Build a React frontend that connects to Lace wallet, reads state from the indexer, and submits scores on-chain.](https://docs.midnight.network/tutorials/leaderboard/browser-dapp.md)

[Build the frontend→](https://docs.midnight.network/tutorials/leaderboard/browser-dapp.md)

[✦](https://docs.midnight.network/tutorials/leaderboard/deployment.md)

### [Production deployment](https://docs.midnight.network/tutorials/leaderboard/deployment.md)

[Deploy the leaderboard frontend to Vercel with compiled circuit keys and TypeScript bindings.](https://docs.midnight.network/tutorials/leaderboard/deployment.md)

[Deploy to production→](https://docs.midnight.network/tutorials/leaderboard/deployment.md)
