This project is a simple yet an amazing AI-powered chat application built using Angular and the Gemini API. It enables seamless interaction with Google's Gemini AI, providing a smooth conversational experience within a web-based chat interface.
To set up and run this project locally, follow the steps below.
Begin by cloning the repository to your local machine:
git clone https://github.com/ngcameroon/ai-chat-app.gitNavigate into the project directory and install all required dependencies using npm:
npm installTo integrate the Gemini AI functionality, you need an API key.
- Visit the Gemini API documentation.
- Follow the instructions to generate your API key.
- Open the
gemini.service.tsfile in your project. - Replace
"GEMINI_API_KEY"with your actual API key in the constructor:
...
constructor() {
this.generativeAi = new GoogleGenerativeAI("GEMINI_API_KEY");
}
...Start the development server using the Angular CLI:
ng serveOnce the server is running, open your browser and go to:
http://localhost:4200/
The application will automatically reload whenever you modify any of the source files.
We welcome contributions from the community! To contribute to this project:
-
Fork the repository.
-
Create a new branch for your feature or bug fix.
-
Make your changes and commit them with a clear message.
-
Push your changes to your forked repository.
-
Open a pull request to the main repository.
Before submitting a pull request, please ensure your changes follow the project's coding standards and are well-documented.
Thank you for helping improve this project!
