GPT Writer is a Software as a Service (SaaS) project leveraging OpenAI's GPT-3.5 API to provide users with a suite of valuable services, including grammar checking, text summarization, article writing, and paraphrasing.
Built with NextJS 13, PlanetScale, Drizzle ORM, OpenAI, Clerk, ShadCN/ui and Stripe.
Clone this repo
git clone https://github.com/miljan-code/gpt-writer-v2.git
Install necessary dependencies
npm install
# or
yarn
Fill up the .env file
# DB - PlanetScale
DATABASE_URL='mysql://user:pw@planetscale'
# AUTH - Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
CLERK_WEBHOOK_SECRET=
# Stripe
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PLAN_100=
STRIPE_PLAN_200=
STRIPE_PLAN_350=
STRIPE_PLAN_500=
# OpenAI
OPENAI_API_KEY=
# UploadThing
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
# App URL
APP_URL="http://localhost:3000"
Setup clerk and stripe webhook endpoints
Run the development server
npm run dev
# or
yarn dev
Try it out here