This project sets up a Gemini AI Chatbot using React and Google Generative AI. Follow the instructions below to set up and run the project on your local machine.
Ensure you have the following installed on your system:
- Node.js
If you do not have Node.js installed, follow these steps:
- Visit the official Node.js website.
- Download the Node.js installer for your operating system.
- Run the installer and follow the prompts to complete the installation.
-
Clone the Repository
git clone https://github.com/Anubhx/AI-chatbot
-
Open the Project in VS Code
- Open Visual Studio Code.
- Open the project folder in VS Code.
-
Open Integrated Terminal in VS Code
- Right-click on the sidebar in VS Code.
- Select "Open In Integrated Terminal".
-
Install Dependencies
npm install
Wait for the installation to complete. You will see a
node_modules
folder appear in the sidebar. -
Set Up API Key
- Create your API key from Google Generative AI.
- Open the
gemini.js
file located in thesrc/config
folder. - Paste your API key in the appropriate location within the
gemini.js
file.
-
Run the Project
npm run dev
-
Access the Project in Your Browser
- Copy the localhost link provided in the terminal after running the previous command.
- Open the link in your web browser.
This project is licensed under the MIT License. See the LICENSE file for details.