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.
- 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
- Node.js (>= 18.x)
- npm (or yarn)
- Axios
git clone https://github.com/your-username/code-review-assistant-frontend.git
cd code-review-assistant-frontend
npm install # or yarn install
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.
To enable the contact form email functionality using EmailJS, follow these steps:
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>
- Go to EmailJS and create a free account.
- 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.
- Paste the above three values into your
.env
file.
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.
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.
✅ 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
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
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!
If you found this project useful, please do consider leaving a ⭐ on GitHub. Thank you! 😄