bktfuture / gemini-hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gemini-hack

Front-end Dev Setup

Install Node.js

Clone the repo

Run the following commands inside of the repo directory (gemini-hack)

cd nextjs-fastapi
npm install
npm run next-dev

This should install the required packages and start a dev instance of Next.js with hot reload

Back-end Dev Setup

Install Python (preferably 3.11 or 3.12) and Node.js

Clone the repo

Run the following commands inside of the repo directory (gemini-hack)

cd nextjs-fastapi
touch api/.env
npm run fastapi-dev

Edit the .env file and add the following key value pairs:

GEMINI_API_KEY=<Gemini API Key>
DB_USER=<MongoDB user name>
DB_PASSWORD=<MongoDB user password>
DB_NAME=<MongoDB Database name>
DB_URI=<MongoDB URI to connect that uses the DB_USER, DB_PASSWORD, and DB_NAME variables>
QDRANT_API_KEY=<API Key for Qdrant Vector DB>
QDRANT_URI=<URI/URL to Qdrant Cloud instance>
QDRANT_COLLECTION_NAME=<Collection name of your choice to store embeddings in>

It will install all of the required python packages and start the FastAPI dev server with hot reload

System Architecture

draft_diagram

About

License:MIT License


Languages

Language:TypeScript 40.5%Language:CSS 40.4%Language:Python 18.4%Language:JavaScript 0.7%