AIer is a web application that allows you to create and share AI Avatars with your friends. It is built with Next.js, Supabase and OpenAI.
https://aier.app/


2023-06-05: I have decided to use Next.js Page Router and client-side data fetching to build this app, I won't upgrate to Next.js App Router by myself.
If you want to use Next.js App Router and server-side data fetching, pull request is welcome.
npm installcp .env-vercel.local.example .env.local
# modify env varsnpm run devcp .env-emb.local.example .env.local
# modify env varsdownload datasets from AIer-data
run
npm run embed:tnpm install supabase --save-devnpx supabase loginnpx supabase gen types typescript --project-id [YOUR-PROJECT-REF] --schema public > types_db.tsnpm i -g vercelvercel login
vercel link
vercel env pull .env.localTo get started, click the "Deploy with Vercel" button below.

Once the project has deployed, continue with the configuration steps below.
The initial build will fail due to missing Stripe environment variables. After configuring Stripe, redeploy the application.
For auth redirects (magic links, OAuth providers) to work correctly in deploy previews, navigate to the auth settings (i.e. https://app.supabase.com/project/:project-id/auth/url-configuration) and add the following wildcard URL to "Redirect URLs": https://**vercel.app/*/*.
You can read more about redirect wildcard patterns in the docs.
You can use third-party login providers like GitHub or Google. Refer to the docs to learn how to configure these. Once configured you can add them to the provider array of the Auth component on the signin.tsx page.