Xata: Typo-Tolerant Full-Text Search
Type: Code
Framework: Next.js
CSS: Tailwind
Database: Xata
- Features: This project includes features like Typo-Tolerant Full-Text Search, Aggregations, Type-Safe SDK/ORM, a Next.js App Directory with React Server Components, Intercepting Route, and Parallel Route.
- Stack: The project uses various packages for different purposes including Zod for schema validation, Xata Client for ORM, TailwindCSS for styling, vercel/OG for OG image generation, and React-Icons for SVG Icons as React components.
- Environment Setup: To set up your local instance, you’ll need XATA_API_TOKEN to connect to your Xata workspace and VERCEL_URL, which is populated by Vercel and represents your local server URL.
- Link to Xata: You can use the
xata init
command with default configuration to link your project with Xata. This creates the necessary files and sets up XATA_API_TOKEN. - Database Seed: After linking to your workspace, you can seed the database with 100 rows of mocked data using the
pnpm xata:seed
command. - Run Locally: Once your project is linked and the database has data, you can start the development server locally using
pnpm dev
, with the server running onlocalhost:3000
by default.