This project is a React application that serves as the frontend for the AI Assistance system. It utilizes Tailwind CSS for styling and provides a user-friendly interface for interacting with the AI backend.
ai-assistance-frontend
├── public
│ └── index.html # Main HTML file for the React application
├── src
│ ├── App.jsx # Main App component
│ ├── index.js # Entry point for the React application
│ ├── assets # Directory for static assets (images, fonts, etc.)
│ ├── components # Directory for reusable React components
│ ├── pages # Directory for page components representing different views
│ └── styles
│ └── tailwind.css # Tailwind CSS styles
├── tailwind.config.js # Configuration file for Tailwind CSS
├── postcss.config.js # Configuration file for PostCSS
├── package.json # npm configuration file
└── README.md # Project documentation
To get started with the project, follow these steps:
-
Clone the repository:
git clone <repository-url> cd ai-assistance-frontend -
Install dependencies:
npm install -
Run the application:
npm startThis will start the development server and open the application in your default web browser.
This project uses Tailwind CSS for styling. The styles are defined in the src/styles/tailwind.css file. You can customize the Tailwind configuration in the tailwind.config.js file.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
The AI Assistance Backend is a Node.js application that leverages the Google Generative AI API to provide code review functionalities. It allows developers to submit code snippets and receive constructive feedback, suggestions for improvements, and best practices.
ai-assistance-backend
├── src
│ ├── controllers
│ │ └── ai.controller.js
│ ├── routes
│ │ └── ai.routes.js
│ ├── services
│ │ └── ai.service.js
│ └── app.js
├── .env
├── package.json
└── README.md
-
Clone the repository:
git clone <repository-url> cd ai-assistance-backend -
Install the dependencies:
npm install -
Set up your environment variables:
- Create a
.envfile in the root directory and add your Google Gemini API key:GOOGLE_GEMINI_KEY=your_api_key_here
- Create a
-
Start the application:
npm start -
Send a POST request to the
/get-reviewendpoint with the following JSON body:{ "code": "your_code_here" } -
The server will respond with a review of the provided code, including suggestions for improvements and best practices.
- Description: Submits code for review.
- Request Body:
code: The code snippet to be reviewed (required).
- Response: A JSON object containing the review feedback.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is licensed under the MIT License. See the LICENSE file for more details.