Tutorials
Learn TopGun by building real projects. Each tutorial walks you through a complete application from start to finish.
Available Tutorials
Todo App
Difficulty: Beginner | Time: ~30 minutes
Build a React todo application with offline-first data and optional real-time sync. You will learn how to:
- Set up a Vite + React project with TopGun
- Use
useQueryto subscribe to your todo items - Use
useQueryanduseMutationReact hooks - See offline capability in action
- Observe real-time sync between browser tabs
Prerequisites
Before starting any tutorial, make sure you have:
- Node.js 18+ and pnpm installed
- Basic familiarity with React and TypeScript
- (Optional) The TopGun server, if you want to test real-time sync (see Quickstart for setup)