Skip to content

Quick Start

Getting started with GAIA is easy. This guide will help you get up and running quickly.

Installation

Make sure you have Node.js >=22.19.0 LTS installed, preferably via nvm.

All you need to do is run this installation command and follow the prompts.

sh
npx create-react-router@latest --template gaia-react/react-router

Install packages

sh
npm install

Setup Fix on Save in your IDE

Follow these instructions.

Documentation

GAIA comes with the documentation included. Run it locally with:

sh
npm run docs

It is recommended that you keep these docs up to date as you build your project. There is also a GitHub action to deploy the docs to your repository's GitHub Pages.

Claude knows how to reference the documentation when necessary.

Claude

GAIA comes with Claude Code support built-in: scaffolding commands, quality rules, and a code review agent. See Claude Integration for the full list.

Once you're familiar with the GAIA framework, open Claude and run the /gaia-init command. This will remove the example code and give you a clean slate for your project. From there, use /new-route, /new-component, /new-service, and /new-hook to scaffold new code that follows GAIA conventions.

Development

Duplicate the .env.example file and name it .env.

Storybook

sh
npm run storybook

React Router

sh
npm run dev

Styling

This template comes with Tailwind CSS configured, with some configuration and utilities, which you can change to suit your project.

See the Vite docs on css for more information.

Icons

FontAwesome is included. You're free to change it if you like.

i18n

Remix-i18next is configured with examples.

Storybook is already configured with react-i18n support.

Testing

GAIA comes with a full testing suite already configured.

Unit and Integration

sh
  npm t
  // or
  npm run test

Visual Regression

Chromatic

You'll need to set your CHROMATIC_PROJECT_TOKEN env variable on your CI.

E2E

PlayWright

sh
npx playwright test

Interactive mode:

sh
npx playwright test --ui

Deployment

GAIA comes with the default React Router deployment configuration. You can change this to whatever deployment process you prefer.

Here's the basic React Router deployment process:

sh
npm run build

Then run the app in production mode:

sh
npm start

You'll need to pick a host to deploy it to. Jacob Paris wrote an article on where you can host your React Router 7 app.

DIY

If you're familiar with deploying Node applications, the built-in React Router app server is production-ready.

Make sure to deploy the output of npm run build

  • build/server
  • build/client

Released under the MIT License