The Visitor Authentication System (VAS) is a web application built using Flask that allows organizations to manage visitor entries, including details like name, mobile number, purpose of visit, vistors live photo capturing and check-in/check-out times. The system also implements authentication for secure access control.
- User Authentication (Register, Login, Logout)
- Multiple Database Support (User and Visitor data stored separately)
- CRUD Operations for managing visitor records
- Photo Upload & Storage
- Responsive UI with Bootstrap
- Backend: Flask, Flask-SQLAlchemy, Flask-JWT-Extended
- Database: SQLite
- Frontend: HTML, Bootstrap
- Security: bcrypt (for password hashing)
git clone https://github.com/your-username/vms.git
cd vmspython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtpython
>>> from app import db
>>> db.create_all()
>>> exit()python app.pyThe app will start running on http://127.0.0.1:8000/
| Endpoint | Method | Description |
|---|---|---|
/register |
POST | Register a new user |
/login |
POST | Login and receive a JWT token |
/logout |
GET | Logout user (clears session) |
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Home page (Redirects to login) |
/dashboard |
GET | View visitor records (Requires authentication) |
/photo |
GET | Photo upload page |
/upload |
POST | Upload visitor image |
/update/<sno> |
POST | Update visitor details |
/delete/<sno> |
GET | Delete visitor record |
- The dashboard and visitor management pages are only accessible if the user is logged in.
- If the user tries to access
127.0.0.1:8000/dashboardwithout logging in, they are redirected to/login.
Developed by Suraj Gupta.






