- 💬 OpenAI Integration: Seamlessly integrate with OpenAI's language model to generate dynamic and challenging Leetcode-style questions.
- 📂 PostgreSQL Database: Store generated questions in a PostgreSQL database for easy retrieval and management.
- 🚀 Spring Boot: Built on the robust Spring Boot framework, ensuring a scalable and secure back-end architecture.
- 📡 RESTful APIs: Interact with the application through intuitive RESTful APIs, enabling easy integration with front-end frameworks or clients.
- 📝 Detailed Documentation: Comprehensive documentation to guide you through the setup process and usage of the application.
- Java
- Spring Boot
- Spring AI
- PostgreSQL
- OpenAI API
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/ismarjiw/leetcode-generator.git
- Configure the PostgreSQL database connection settings in the
application.properties
file. - Set up your OpenAI API key as an environment variable.
- Build and run the Spring Boot application.
- Send a POST request to the
/api/problems
endpoint with a request body containing the desired problem statement.
Happy coding! 🎉