Search...
ctrl/
Light
Dark
System
Sign in
Environment:

Quickstart

Welcome to the quickstart tutorial! In this tutorial, you will update a simple Next.js application to use Gel as your data layer. The application will let users build and manage their own study decks, with each flashcard featuring customizable text on both sides - making it perfect for studying, memorization practice, or creating educational games.

Don't worry if you're new to Gel - you will be up and running with a working Next.js application and a local Gel database in just about 5 minutes. From there, you will replace the static mock data with a Gel powered data layer in roughly 30-45 minutes.

By the end of this tutorial, you will be comfortable with:

  • Creating and updating a database schema

  • Running migrations to evolve your data

  • Writing EdgeQL queries in text and via a TypeScript query builder

  • Building an app backed by Gel

  • Create, edit, and delete decks

  • Add/remove cards with front/back content

  • Simple Next.js + Tailwind UI

  • Clean, type-safe schema with Gel

Before you start, you need:

  • Basic familiarity with TypeScript, Next.js, and React

  • Node.js 20+ on a Unix-like OS (Linux, macOS, or WSL)

  • A code editor you love

  • Type Safety: Catch data errors before runtime

  • Rich Modeling: Use object types and links to model relations

  • Modern Tooling: TypeScript-friendly schemas and migrations

  • Performance: Efficient queries for complex data

  • Developer Experience: An intuitive query language (EdgeQL)

If you run into issues while following this tutorial: