Xata: Typo-Tolerant Full-Text Search

R
Renaudil y a 2 jours
0

Description

Next.js and React Server Components template with Xata powered full-text search.

npx boilerapp xata-search

文档

Features ⚡️

Stack ⚙️

PackageReason
ZodSchema validation
Xata ClientORM
TailwindCSSStyles
vercel/OGOG image generation
React-IconsSVG Icons as React components

Environment Setup 🧱

To have your own local instance of this app, you will need 2 API keys, and your deployment URL.

  • XATA_API_TOKEN: to connect your own Xata workspace.
  • VERCEL_URL: popullated by Vercel, on your local environment it’s your local server url (https://localhost:3000 by default).

Once you have those keys, you can create a .env.local as shown in .env.template.

Link to Xata 🦋

You can run the xata init command with some default configuration:

pnpm xata:link

By the end you should have the XATA_API_TOKEN in your .env.local and a .xatarc file created.

Database Seed 🌱

Once you have a working link with the workspace, you can run:

pnpm xata:seed

This task will add 100 rows of mocked data to get you started with a working app.

Run Locally 🧑‍✈️

Once you project is linked and database has data, you can start the development server.

pnpm dev

By default, server will run on localhost:3000.


<a href="https://xata.io/" target="_blank"> <img alt="Xata's logo" src="/public/xata-logo-primary@2x.png" width="32" /> </a>

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联系我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联系我们,我们将尽快回复。