kabat87 / 7-doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template-next-supabase

Starterkit for OpenAI chat client based on your own content. Main ingredients:

Install

The following commands are using my-namespace as set in config.ts and ingest content from the reactjs/react.dev repository. By all means, you're encouraged to change them to something more original.

Prepare db

Create a Supabase account if you don't have one already.

The following command does not actually do anything. Instead, it gives you an all-batteries-included SQL query to run in your Supabase project area's SQL Editor:

npx 7d supabase-create-table --namespace my-namespace

Ingest

npx 7d ingest \
  --source github \
  --repo reactjs/react.dev \
  --files 'src/content/reference/react/*.md' \
  --files 'src/content/reference/react-dom/*.md' \
  --files 'src/content/learn/*.md' \
  --namespace my-namespace

Run

npm run dev

Deploy

This application can be deployed on platforms with support for Next.js + edge functions. Examples:

Make sure to add the environment variables to the platform first.

About


Languages

Language:TypeScript 91.8%Language:JavaScript 5.1%Language:CSS 3.1%