This is a Next.js project bootstrapped with create-next-app
.
To get started, first, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Once the server is running, open your browser and navigate to http://localhost:3000 to see the app in action.
To connect with OpenAI, you'll need to add your OpenAI API key to the project:
-
Create a
.env.local
file in the root directory of the project. -
Add the following line to the file, replacing
your-openai-key
with your actual OpenAI API key:OPENAI_API_KEY=your-openai-key
This will enable the application to authenticate and communicate with OpenAI services.
You can start editing the page by modifying app/page.js
. The page will automatically update as you save your changes.
This project uses next/font
to automatically optimize and load Geist, a modern font family from Vercel.
To dive deeper into Next.js, explore the following resources:
- Next.js Documentation – Learn about Next.js features and APIs.
- Learn Next.js – An interactive tutorial to get started with Next.js.
- Next.js GitHub Repository – Check out the source code, contribute, and give feedback.
The easiest way to deploy your Next.js app is via the Vercel Platform, the creators of Next.js.
For detailed deployment instructions, check out the Vercel Documentation.