Lavanyamanohar11 / AIGiftGenerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAI API Quickstart - Node.js example app

This is an app using OpenAI API. It uses the Next.js framework with React.

Setup

  1. If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)

  2. Clone this repository

  3. Navigate into the project directory

    $ cd openai-quickstart-node
  4. Install the requirements

    $ npm install
  5. Make a copy of the example environment variables file

    On Linux systems:

    $ cp .env.example .env

    On Windows:

    $ copy .env.example .env
  6. Add your API key to the newly created .env file

  7. Run the app

    $ npm run dev

You should now be able to access the app at http://localhost:3000!

About

License:MIT License


Languages

Language:JavaScript 83.3%Language:CSS 16.5%Language:Shell 0.2%