Skip to content

yuhan0714/Quote-Generator-Using-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 English简体中文

Generate the Quotes you need in seconds using AI.

Generate the Quotes Demo address:https://quotegenerator.cc/

How it works

This project adds a multi-language internationalized version based on the original repository of teacher Weijun. The original repository address is: https://github.com/weijunext/smart-excel-ai This repository code is only required if multi-language internationalization function is required.

This project uses the ChatGPT API and the Vercel AI SDK with streaming. It constructs a prompt based on the form and user input, sends it to the ChatGPT API with a Vercel Edge Function, then streams the response back to the application UI.

Stack

built on the following stack:

  • Next.js – Frontend/Backend
  • TailwindCSS – Styles
  • Postgres and Prisma - database and storage(How to use?)
  • Next-auth - Authentication(How to use?)
  • ChatGPT - Generate the Excel formulas
  • Upstash - Redis(How to use?)
  • Lemon Squeezy - payments(How to use?)
  • Google Analytics - Analytics(How to use?)
  • Docker - Development Storage(How to use?)
  • Vercel - Hosting

If you are unfamiliar with some of the tech stacks, please click on the "How to use" links above to read my Chinese blog, or visit my another public repo - Learn Next.js Stack

Running Locally

After cloning the repo, you need to copy the .env.example file to create a .env file and fill in the required fields.

Open Upstash and Create Redis application.

Then write UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN to .env.

Then, run the application in the command line and it will be available at http://localhost:3000.

pnpm i

pnpm run dev

One-Click Deploy

Deploy the example using Vercel"# Quote-Generator-Using-AI"

About

Quote Generator Using AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published