Giter Club home page Giter Club logo

gpt-writer's Introduction

GPT Writer - Modern Fullstack SaaS application

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.

GPT Writer

Features

  • Clerk auth sync with DB using webhooks
  • AI text generation using OpenAI's GPT-3.5
  • Image upload using UploadThing
  • Beautiful dashboard built with ShadCN/ui components
  • Modern looking landing page built with TailwindCSS
  • Stripe integration for payments
  • Form validations with Zod and React-Hook-Form
  • CRUD operations using Drizzle ORM
  • State management using Jotai
  • Markdown rendering
  • and much more...

Usage

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

Demo

Try it out here

https://gpt-writer.miljan.xyz/

gpt-writer's People

Contributors

miljan-code avatar dependabot[bot] avatar

Stargazers

 avatar Muhammad Salman avatar M jaganmohan reddy avatar  avatar Austin avatar Prezensy avatar

Watchers

 avatar

gpt-writer's Issues

Unable to Start the Project

I tried to start the project following the instructions in the README, but encountered some issues.
When I try to load http://localhost:3000/, the browser keeps loading.

error code:
yarn dev
yarn run v1.22.22
warning ../../package.json: No license field
$ next dev

  • ready started server on 0.0.0.0:3000, url: http://localhost:3000
  • info Loaded env from /Users/didikee/Downloads/gpt-writer-v2/.env
    warning ../../package.json: No license field
  • event compiled client and server successfully in 364 ms (20 modules)
  • wait compiling...
  • event compiled client and server successfully in 235 ms (20 modules)
  • wait compiling /middleware (client and server)...
  • event compiled successfully in 333 ms (265 modules)
  • wait compiling /(marketing)/page (client and server)...

The demo in the readme also seems to be unable to open😞

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.