mihailt / ai-companions

Home Page:https://ai-companions-pink.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SaaS AI Companion with Next.js 13, React, Tailwind, Prisma, Stripe

This is a repository for SaaS AI Platform with Next.js 13, React, Tailwind, Prisma, Stripe

Features:

  • Tailwind design
  • Tailwind animations and effects
  • Full responsiveness
  • Clerk Authentication (Email, Google, 9+ Social Logins)
  • Client form validation and handling using react-hook-form
  • Server error handling using react-toast
  • Conversation Generation Tool (Open AI)
  • Page loading state
  • Stripe monthly subscription

Node version 18.x.x

Cloning the repository

git clone https://github.com/mihailt/ai-companions.git

Install packages

yarn

Setup .env file

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

OPENAI_API_KEY=
REPLICATE_API_TOKEN=

PINECONE_API_KEY=
PINECONE_ENVIRONMENT=
PINECONE_INDEX=

UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=

NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=

DATABASE_URL=

STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=

NEXT_PUBLIC_APP_URL="http://localhost:3000"

Setup Prisma

Add MySQL Database (I used PlanetScale)

npx prisma db push

Seed categories:

node scripts/seed.ts

Start the app

yarn dev

Available commands

Running commands with yarn yarn [command]

command description
dev Starts a development instance of the app

About

https://ai-companions-pink.vercel.app


Languages

Language:TypeScript 96.3%Language:JavaScript 2.3%Language:CSS 1.4%