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.
npx create-react-router@latest --template gaia-react/react-routerInstall packages
npm installSetup Fix on Save in your IDE
Follow these instructions.
Documentation
GAIA comes with the documentation included. Run it locally with:
npm run docsIt 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
npm run storybookReact Router
npm run devStyling
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
npm t
// or
npm run testVisual Regression
You'll need to set your CHROMATIC_PROJECT_TOKEN env variable on your CI.
E2E
npx playwright testInteractive mode:
npx playwright test --uiDeployment
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:
npm run buildThen run the app in production mode:
npm startYou'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/serverbuild/client