Skip to content

A NextJS application who consumes OpenAI (GPT-3.5) for generating blog posts based on a given topic.

Notifications You must be signed in to change notification settings

WillACosta/nextjs-openai-blog

Repository files navigation

@nextjs-openai-blog

This project serves as a demonstration of consuming OpenAI APIs and utilizing generative AI (GPT-3.5) to generate blog posts based on specific topics and keywords. Additionally, it includes features such as Auth0 integration and Stripe for managing in-app purchases.

Screenshots



Technical Resources

  • Open AI API integration (GPT-3.5-turbo)
  • Usage of Next.js framework
  • Integration with MongoDB to store user blog posts data
  • Authentication with Auth0
  • Integration with Stripe Payment for buying digital currency
  • TailwindCSS and RadixUI for create beautifully, responsive and accessible UI

How to execute

  1. Clone this repository
git clone https://github.com/WillACosta/nextjs-openai-blog
  1. Make sure that you have all environment variables set, before running the project, run the following command to copy the env file, and then fill in your own credentials.
cp .env-example .env
  1. Run the following command
yarn install & yarn bootstrap

By executing this command, all the required dependencies will be installed, and the script will be launched to listen for Stripe responses (webhooks) and effectively handle payment transactions

you can find more information in the package.json file

Feel free to help me improve and implement new features for this application, and so on. Thank you for being here.

About

A NextJS application who consumes OpenAI (GPT-3.5) for generating blog posts based on a given topic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published