Skip to content

The AI-Based Code Review Assistant allows users to submit code, which is then analyzed by an AI model (like OpenAI’s GPT) for suggestions, optimizations, and best practices. Users can retrieve past reviews and insights from the system.

License

Notifications You must be signed in to change notification settings

soumyadeep6845/code-review-assistant-frontend

Repository files navigation

AI Code Review Assistant

Logo

🚀 Overview

This is the frontend of the Code Review Assistant, a web-based AI-powered tool that reviews and suggests improvements for code snippets. The application provides a user-friendly interface for submitting code, viewing AI feedback, and improving coding practices.

📸 Application Screenshots

🔹 Authentication Page

Auth

🔹 Home Page

Home

🔹 About Page

About

🔹 Contact Page

Contact

🔹 Code Review in Action

Review Feedback

🔹 Containerization (Docker) - Frontend

Docker

🛠 Tech Stack

  • Language: Typescript
  • Framework: React
  • UI/Styling: Tailwind CSS, HTML, CSS, Google Fonts
  • Animation: Framer Motion
  • State Management: React (Context API)
  • Authentication: JWT (custom implementation)
  • Form Validation: React + EmailJS Field Sync
  • API Communication: Axios
  • Email Integration: EmailJS
  • Deployment: Docker

📦 Installation & Setup

Prerequisites

  • Node.js (>= 18.x)
  • npm (or yarn)
  • Axios

1️⃣ Clone the Repository

git clone https://github.com/your-username/code-review-assistant-frontend.git
cd code-review-assistant-frontend

2️⃣ Install Dependencies

npm install  # or yarn install

3️⃣ Run the Development Server (Locally)

npm run dev  # or yarn dev

The app should now be running on http://localhost:5173.

💡 Make sure the backend is up and running on http://localhost:8080.


📧 EmailJS Setup (For Contact Page)

To enable the contact form email functionality using EmailJS, follow these steps:

🔐 Create a .env file

Create a .env file in the root directory of your project and ensure it is added to .gitignore to avoid committing sensitive credentials.

VITE_EMAILJS_SERVICE_ID=<your-service-id>
VITE_EMAILJS_TEMPLATE_ID=<your-template-id>
VITE_EMAILJS_PUBLIC_KEY=<your-public-key>

🛠 How to Obtain EmailJS Credentials

  1. Go to EmailJS and create a free account.
  2. In the dashboard:
    • Add a new Email Service and connect it to a valid email (e.g., Gmail, Outlook).
    • Create a new Email Template — make sure it includes all required fields that match your form input names.
    • Go to Account → Copy your Public Key.
  3. Paste the above three values into your .env file.

💡 Note

Make sure that:

  • The form field names in your React component match the template variables you’ve added in the EmailJS template.
  • Restart your app after making any changes to the .env file.

🐳 Run with Docker

To build and run the application using Docker:

docker build -t code-review-frontend:dev .
docker run -p 5173:5173 code-review-frontend:dev

The app will be accessible at http://localhost:5173.


📌 Features

✅ Submit code snippets for AI-based review
✅ View AI-generated feedback
✅ Responsive and modern UI using Tailwind CSS
✅ Secure API communication with the backend
✅ Containerised using Docker


📜 Folder Structure

 code-review-assistant-frontend/
 ┣  screenshots/   # Application screenshots
 ┣  src/
 ┣  ┣  api/        # API components and integration
 ┣  ┣  assets/     # Visual assets
 ┣  ┣  components/ # UI components
 ┣  ┣  pages/      # Application pages
 ┣  ┣  utils/      # Routes
 ┣  ┣  App.tsx     # Main application entry
 ┣  ┣  main.tsx    # React root file
 ┣  Dockerfile     # Docker configuration
 ┣  .env           # Stored secrets & keys
 ┣  README.md

🎯 Contribution

If you'd like to contribute, feel free to fork the repository, create a new branch, and raise a pull request with changes you deem necessary!

💚 Found this project interesting?

If you found this project useful, please do consider leaving a ⭐ on GitHub. Thank you! 😄

👨 Project Maintained By

Soumyadeep Das

About

The AI-Based Code Review Assistant allows users to submit code, which is then analyzed by an AI model (like OpenAI’s GPT) for suggestions, optimizations, and best practices. Users can retrieve past reviews and insights from the system.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •