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
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