https://github.com/benikk/cheatcode
AI app to give you personalised feedbacks on your DSA problems
https://github.com/benikk/cheatcode
ai llama3 nextjs vercel-ai-sdk
Last synced: 6 months ago
JSON representation
AI app to give you personalised feedbacks on your DSA problems
- Host: GitHub
- URL: https://github.com/benikk/cheatcode
- Owner: BeNikk
- License: mit
- Created: 2024-07-24T04:37:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T06:54:44.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T04:43:20.335Z (over 1 year ago)
- Topics: ai, llama3, nextjs, vercel-ai-sdk
- Language: TypeScript
- Homepage: https://cheat-code-rose.vercel.app/
- Size: 1.55 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CheatCode
Welcome to CheatCode! This application allows users to solve LeetCode-style problems and receive personalized feedback and hints for their solutions, powered by generative AI. The app is built using Next.js, Vercel AI SDK, and Llama 3.1.
## Table of Contents
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Features
- **Sign Up and Login:** Users can create an account and log in to access personalized features.
- **Random Question Selection:** Select a random question from a dropdown menu.
- **Solve and Submit Solutions:** Submit solutions to the questions and receive test case validation.
- **Personalized Feedback:** Get detailed feedback on your solutions, including suggestions for improvements and optimization.
- **Hints and Optimization Suggestions:** Receive hints and optimization suggestions generated by Llama 3.1 AI to improve your problem-solving skills.
## Technologies Used
- **Next.js:** Frontend and backend framework.
- **Vercel AI SDK:** Integration for AI features.
- **Llama 3.1:** Generative AI model used for feedback and hints.
## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/leetcode-solver-web-app.git
cd leetcode-solver-web-app
```
2. **Install dependencies:**
```bash
npm install
```
3. **Set up environment variables:** Create a `.env.local` file and add the necessary environment variables for your setup.
```
NEXT_PUBLIC_API_KEY=your-vercel-ai-sdk-api-key
NEXT_PUBLIC_LLAMA_MODEL_VERSION=3.1
```
4. **Run the development server:**
```bash
npm run dev
```
5. **Open your browser and navigate to:**
```
http://localhost:3000
```
## Usage
1. **Sign Up/Login:** Create an account or log in with your credentials.
2. **Search for Questions:** Use the search functionality to find questions by category.
3. **Select a Question:** Choose a random question or select one based on difficulty.
4. **Submit Your Solution:** Write and submit your code for the selected question.
5. **Receive Feedback:** View personalized feedback, hints, and optimization suggestions generated by Llama 3.1.
## Contributing
We welcome contributions to improve this project! To contribute, follow these steps:
1. **Fork the repository.**
2. **Create a new branch:**
```bash
git checkout -b feature/your-feature-name
```
3. **Make your changes and commit them:**
```bash
git commit -m 'Add your feature description'
```
4. **Push to the branch:**
```bash
git push origin feature/your-feature-name
```
5. **Open a pull request** and describe your changes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---
Feel free to reach out if you have any questions or need further assistance. Happy coding!
---