An open API service indexing awesome lists of open source software.

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

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!

---