This repo was created to demonstrate how quickly you can publish blog posts on a blog application using Chat GPT. The application was completed in approximately 1 hour. Demo
- The blog application is written with Node.js and Next.js.
- The application is built on top of Next.js Contentlayer Blog Starter.
- The application is deployed on vercel.com.
- A bot written in Python generates blog posts via the Chat GPT API and configures them for the Next.js Contentlayer Blog Starter application.
-
Clone the repo.
-
Install node modules with
npm update
. -
Obtain an API key from OpenAI.
-
Create a
.env
file and add your API key asOPEN_AI_API_KEY = [API_KEY]
. -
Install the required libraries for Python:
-
Run the application, generate blog posts with Python. The Python program will automatically push the generated blogs to git.
-
If you're deploying on vercel, it will automatically detect the changes and deploy them.