Skip to content

HeetProgrammer/Mini-contest-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Contest Web App

A Flask web application that allows users to create an account and solve coding problems. Admins can add problems with title, description, sample input. Users have to give correct output either in a textbox or add a python code file. This app also keeps track of the scores of the users and displays them on a leaderboard

#Features:

User Authentication

  • User registration with secure password hashing
  • Login & Logout functionality with session management
  • Flask-Login integration

Problem Management Admins can add coding problems with:

  • Title
  • Description
  • Sample Input
  • Sample Output

Problem Solving Users can attempt problems by: *Writing output directly in a text box *Uploading a Python file (only .py files are allowed) *The app checks correctness and flashes messages accordingly *Solved problems are stored per user

Leaderboard Displays all users ranked by score *Admins are excluded from the leaderboard

User-Friendly Interface

  • Clean and responsive templates with Jinja2
  • Flash messages for better user experience

#Getting Started:

  1. Clone the Repository
git clone https://github.com/HeetProgrammer/Mini-contest-web-app.git
cd Mini-contest-web-app
  1. Install Dependencies
pip install -r requirements.txt
  1. Run the 'run.py' file
python run.py
  1. Visit http://127.0.0.1:5000/ in your browser.

  2. There are 2 pre-made admin accounts. Account 1 -Username: Admin1 -Email Address: admin1@gmail.com -Password: 12345678 Account 2 -Username: Admin2 -Email Address: admin2@gmail.com -Password: 12345678

  3. Log into any of these and you can create problems which other users can solve!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published