Getting Started with Routier

Welcome to Routier! This section will guide you through setting up Routier in your project and getting your first application running.

✨ Explore Before You Install

Try Routier in a live CodeSandbox environment to see schemas, live queries, and React integration in action before setting up your own project.

Open CodeSandbox Demo →

Quick Navigation

What You’ll Learn

By the end of this getting started guide, you’ll have:

  • ✅ Installed Routier and a storage plugin
  • ✅ Created your first schema and collection
  • ✅ Built a simple application with live queries
  • ✅ Understood Routier’s core concepts

Prerequisites

Before you begin, make sure you have:

  • Node.js (v16 or higher)
  • npm or yarn package manager
  • Basic knowledge of TypeScript or JavaScript
  • A text editor (VS Code recommended)

Quick Overview

Routier works by:

  1. Defining schemas - Type-safe data structures with defaults, indexes, and computed properties
  2. Creating collections - Typed entity sets backed by any storage plugin
  3. Using live queries - Reactive queries that update automatically when data changes
  4. Making optimistic mutations - Instant UI updates with automatic rollback on errors

Choose Your Path

If you want to see Routier in action immediately:

📦 Installation First

If you prefer to understand the setup process:

⚛️ React Developer

If you’re building with React:

⚙️ Advanced Setup

If you need custom configuration:

Next Steps

Once you’ve completed the getting started guide:

Need Help?

  • 📖 Documentation: Browse our comprehensive guides and API reference
  • 💬 Community: Join discussions and get help from other developers
  • 🐛 Issues: Report bugs or request features on GitHub

Table of contents