Skip to content

0xmetaschool/dsa-gpt-tutor

Repository files navigation

DSAGPT Tutor

DSAGPT Tutor is your personal tutor for mastering Data Structures and Algorithms. It provides step-by-step guidance, similar to learning from a human instructor. With features like AI chat and interactive problem-solving, DSAGPT Tutor helps you excel in your coding interviews.

Built with Next.js and AI technology, this open-source template helps developers create their own programming education tools. As more developers prepare for technical interviews, this template lets you build your own DSA learning platform quickly and easily.

Live Demo

https://dsa-tutor-gpt.vercel.app/

Features

  • User authentication and registration
  • AI-powered chatbot for DSA queries
  • Interactive problem-solving guidance

Technologies Used

  • Next.js and React for Frontend and Backend
  • Database: MongoDB
  • AI Integration: Anthropic's Claude
  • State Management: React Context

Use Cases

  • Integrate with coding platforms to provide real-time code execution and testing.
  • Implement a problem repository feature to practice different DSA concepts.
  • Create interactive visualization modules for algorithms and data structures.

Installation Steps

1. Clone the repository:

git https://github.com/0xmetaschool/dsa-gpt-tutor.git
cd dsa-gpt-tutor

2. Install dependencies:

npm install

3. Set up the database:

Ensure you have MongoDB installed and running on your system, or use a cloud-hosted MongoDB service like MongoDB Atlas. Create a new Cluster, select a free plan, and copy the connection string, this will be required in the next step.

4. Set up environment variables:

Create a .env.local file in the root directory and add the following variables:

NEXT_PUBLIC_API_URL=http://localhost:3000/api
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_nextauth_secret
ANTHROPIC_API_KEY=your_anthropic_api_key

5. Run the development server:

npm run dev

6. Open your browser and navigate to http://localhost:3000

Screenshots

DSAGPT Tutor Landing Page DSAGPT Tutor Chat Preview DSAGPT Tutor New Chat DSAGPT Tutor Chat Sample

How to use the application

  1. Register for a new account or log in
  2. Explore the chat dashboard
  3. Use the chatbot for DSA guidance

Contributing

We love contributions! Here's how you can help make DSAGPT Tutor even better:

  1. Fork the project (gh repo fork https://github.com/0xmetaschool/dsa-gpt-tutor.git)
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Please open an issue in the GitHub repository for any queries or support.