Welcome to the Online Code Submission and Execution Platform! This project implements a web-based platform using the Django framework to facilitate online code submission and execution. Inspired by platforms like LeetCode, it allows users to test their code against provided test cases, view execution time and memory usage, and receive immediate feedback on the correctness of their solutions.
To support this project, explore sponsorship options available for this repository, as every contribution counts and your support will greatly benefit its development 😊
- Code Submission and Execution: Users can submit their code through a web interface and execute it on the platform.
- Test Case Evaluation: The platform evaluates the submitted code against predefined test cases, providing instant feedback on its correctness.
- Custom Input Support: Users can input custom test cases to further test their solutions.
- Execution Time Tracking: Utilizes Django's template language to display execution time alongside the output.
- Memory Usage Monitoring: Tracks memory usage using the
tracemalloc
module to help users optimize their code. - Error Suggestions: Provides suggestions for fixing errors in the code by highlighting the particular section where the mistake is located.
- User Experience Enhancement: Utilizes Bootstrap CSS and jQuery to improve the appearance and functionality of the platform's HTML template.
- Result Display: Upon execution, users are presented with a screen indicating whether their code passed all test cases or not.
To use this platform, simply clone the repository and follow the setup instructions provided in the README. Once set up, users can access the platform through a web browser and start submitting and testing their code.
-
Clone the repository:
$ git clone https://github.com/your_username/online-code-platform.git $ cd online-code-platform
-
Set up the Django environment and dependencies:
$ pip install -r requirements.txt
-
Run database migrations:
$ python manage.py migrate
-
Start the development server:
$ python manage.py runserver
-
Access the platform in your browser at
http://localhost:8000
and start coding!
For a more in-depth overview of the project, check out the presentation created specifically for demonstrating this project at my college. Click here to view the presentation
If you have a better solution or want to suggest improvements, feel free to open an issue or submit a pull request. Contributions are always welcome!
- Anant Krishna
- Pulkit Kumar Mathur
- Sandip
- Tanya Barsainya
If you have any feedback, suggestions, or encounter any issues while using the platform, please don't hesitate to open an issue on GitHub. Your input is invaluable and helps us improve the platform for everyone.
Happy learning and coding!
If you find this repository useful, don't forget to star it! ⭐️