Coder Social home page Coder Social logo

kylie-kiaying / blog-ai Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 12.17 MB

A blog site that allows generation of AI blog content, and rich editing of blog posts | Next.js, Prisma, MySQL, TipTap, OpenAI API

Home Page: https://blog-ai-gamma.vercel.app

CSS 0.16% TypeScript 99.63% JavaScript 0.21%

blog-ai's Introduction

AI Blog App

This AI Blog App is an innovative platform that leverages the power of AI to revolutionize blogging, providing a seamless experience for editing, and managing AI-generated blog posts.

Tech Stack

  • Next.js
  • Typescript
  • Prisma with MySQL
  • TipTap Integration
  • OpenAI API

Key Features

  • AI-Powered Content Generation: Utilize ChatGPT to automatically generate engaging blog content.
  • Prisma MySQL Integration: Backend support using Prisma with a MySQL database to store and manage blog posts.
  • Rich Text Editing: Edit and style your blog posts with ease using TipTap's rich text editor.
  • Responsive Design: Provides a responsive and fast user experience

Demo

Experience the AI Blog App: blog-ai-gamma.vercel.app

Note: Blog posts will only be rendered when the Prisma MySQL database is connected.

Getting Started

Prerequisites

  • Node.js
  • Prisma API Key from PlanetScale (If you wish to connect to your own database)
  • A ChatGPT OpenAI API key (if using the AI content generation feature)
  1. Clone the Repository
git clone https://github.com/kylie-kiaying/blog-ai
cd blog-ai
  1. Install Dependencies
npm install
  1. Setup Environment Variables

Create a .env file in the root directory and add the following:
Add &&sslcert=/etc/ssl.cert.pem at the end of the DATABASE_URL

DATABASE_URL="your_mysql_database_url"
NEXT_PUBLIC_URL=http://localhost:3000
CHATGPT_API_KEY="your_chatgpt_api_key"
  1. Initialize the Database

Synchronize your database schema:

npx prisma db push

If you are using Prisma Migrate to handle database migrations:

npx prisma migrate dev
  1. run the development server:
npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

blog-ai's People

Contributors

kylie-kiaying avatar

Stargazers

Vince Fulco--Bighire.tools avatar  avatar

Watchers

 avatar

Forkers

jasonhao518

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.