Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 792 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 792 Bytes

chatbot

Installation

  1. Clone the repository:

    git clone https://github.com/dice-group/chatbot.git
    cd chatbot
  2. Install dependencies:

    npm install

Backend Server Setup

  1. Create a .env.local file in the root of the project:

    touch .env.local
  2. Add your OpenAI API key to the .env.local file:

    OPENAI_API_KEY=your_openai_api_key_here
    
  3. Run the backend server with the following command:

    node --env-file=.env.local backend/server.js

Frontend Setup

  1. To start the frontend server, use:

    npm run dev
  2. Once the development server is running, open your browser and navigate to:

    http://localhost:3000/