/Genius

AI SaaS Platform with five AI tools. Powered by the Next.js 13 App Router, platform will not only be efficient but also user-centric

Primary LanguageTypeScript

Genius

PRISMA

npx prisma db push
npx prisma generate

Prisma Studio is a visual editor for the data in your database. Note that Prisma Studio is not open source 👇

npx prisma studio

STRIPE-CLI
Go to this website :
https://stripe.com/docs/stripe-cli

after installing exe file open it in cmd or add it to environment variable PATH ,then

stripe login

open link on your browser and grant the access,then run the next command

stripe listen --forward-to localhost:3000/api/webhook

copy and past the webhook-key in env

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=/dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/dashboard

OPENAI_API_KEY=
REPLICATE_API_TOKEN=

DATABASE_URL=

STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=

NEXT_PUBLIC_APP_URL="http://localhost:3000"

CRISP
go this website create account and setup it : https://crisp.chat/en/
Go the setup and add CRISP_WEBSITE_ID to Crisp.tsx(Components)

CRISP_WEBSITE_ID="9d6ea7ef-xxc9-xxb0-xx1e-xxd7351d97xx"

install packages

npm i

Start the app

npm run dev

(use neon.tech for database : https://neon.tech)