An exam administration web application built with Flask. This project provides a simple admin interface for managing users and viewing logs, and it is configured to run with SQLite by default so it is easy to set up locally.
This project is a lightweight Flask application intended for basic exam-system administration tasks. It focuses on a small but functional admin UI rather than a full student testing platform.
The app currently supports:
- admin login
- creating users
- listing users
- viewing logs
- local database storage with SQLite
It is a good starter project for understanding how to build a Flask app with database support, environment-based configuration, and a simple web interface.
- Python — the main programming language
- Flask — the web framework used to build the application
- SQLite by default for local development
- DATABASE_URL support for production deployments
- Optional support for other databases such as PostgreSQL or MySQL when the proper driver is installed
- Environment variables
- Optional
.envfile for local settings
- Server-rendered Flask pages for the admin interface
- Standard HTML templates and form-based interactions
- Admin authentication: login page for admin access
- User management: create and list users
- Log viewing: inspect application or activity logs
- Simple setup: works out of the box with SQLite
- Deployment-ready configuration: supports production database URLs
When the app starts:
- Flask loads the application.
- The database configuration is checked.
- If
DATABASE_URLis provided, that value is used. - If not, the app uses a local SQLite file named
data.sqlite. - If the database file does not exist, it is created automatically on first run.
This design keeps local development simple while still allowing flexible deployment.
The project is expected to include files such as:
app.py— main Flask application entry pointrequirements.txt— Python package dependenciesREADME.md— project documentation.env— optional local configurationdata.sqlite— SQLite database file created at runtime
- Python 3.10+ recommended
- Flask 2.3.x
- A browser to access the admin dashboard
git clone https://github.com/sakship2005/Proctor-Exam-Project.git
cd Proctor-Exam-Projectpython -m venv .venv
.\.venv\Scripts\Activate.ps1python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a .env file in the project root if you want to override defaults:
FLASK_SECRET=change-me
# Optional:
# DATABASE_URL=sqlite:///C:/full/path/to/data.sqlitepython app.pyVisit:
http://127.0.0.1:5000/admin/login
Default login credentials:
- Username:
admin - Password:
admin
SQLite is used by default because it:
- requires no extra database server
- is easy to run locally
- makes the project portable
- is suitable for development and demos
If DATABASE_URL is set, the application will use that instead of SQLite. This is useful for hosting platforms like:
- Heroku
- Railway
- Render
If you use a database other than SQLite, make sure the correct driver is installed:
- PostgreSQL:
psycopg2-binary - MySQL:
pymysql
All Python dependencies are listed in requirements.txt.
Since SQLite is the default database, the project does not need PostgreSQL-specific packages for local use.
- GitHub Pages cannot run Flask applications because it only serves static content.
- Better deployment options for this project include:
- Heroku
- Railway
- Render
- GitHub Codespaces for development/testing
When deploying, remember to:
- set
FLASK_SECRET - configure
DATABASE_URLif using a production database - install all required Python dependencies
- Change the default
admincredentials before using the project in production. - Do not commit secret values into the repository.
- Use secure configuration for public deployments.
This project could be expanded with:
- password hashing
- user roles and permissions
- exam creation and scheduling
- student exam submission
- scoring and result pages
- audit logs and reports
- improved UI styling
This is a small Flask exam administration project with a simple admin interface for user and log management. It is designed to be easy to run locally with SQLite while still supporting production database configuration through environment variables.