Skip to content

iamursky/nextjs-chatgpt-example

Repository files navigation

AI Recommendations

Getting Started

  1. Install dependencies:
npm ci
  1. Create .env.local file and add OpenAI API to it:
OPENAI_API_KEY=<Your key here>
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000

Tech Stack

Production Stack

Development Stack

  • TypeScript as the programming language
  • Prettier for formating code according to the rules
  • ESLint for checking code quality and formatting

Creating OpenAI API Key

  1. Login or create a new OpenAI account
  2. Create a new secret key at API Keys page
  3. Copy the key and add it to the .env.local file in the root of the project as OPENAI_API_KEY

References

About

Next.js + ChatGPT Example

Topics

Resources

Stars

Watchers

Forks