Skip to content

akapez/gemini-chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini-API Chatbot Assistant

This repository contains the Gemini-API chatbot assistant, organized as a monorepo using Turborepo. The project includes a Next.js frontend, a NestJS backend, and NextAuth.js v5 for authentication.

chatbot-assistant.mp4

Monorepo Structure

The monorepo is structured as follows:

  • apps/web: The Next.js frontend application.
  • apps/server: The NestJS backend application.

Prerequisites

  • Node.js (>= 18.x)
  • Yarn

Getting Started

Installation

  1. Clone the repository:

    git clone https://github.com/akapez/gemini-chat-bot.git
    cd gemini-chat-bot
  2. Install dependencies using Yarn:

    yarn install

Environment Variables

Create .env files in the apps/web and apps/server directories with the following variables:

Server Environment Variables (apps/server/.env)

GEMINI_API_KEY=""

Web Environment Variables (apps/web/.env.development.local)

API_URL=http://localhost:8080
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=""
GITHUB_ID=""
GITHUB_SECRET=""

Build

To build all apps and packages, run the following command:

cd gemini-chat-bot
yarn build

Develop

To develop all apps and packages, run the following command:

cd gemini-chat-bot
yarn dev

Useful Links