STUDENT REGISTRATION AND ADMIN VERIFICATION WEB APPLICATION
ABOUT THIS PROJECT: This is a basic web application made using Flask. It allows students to fill a registration form and stores their data in a sqlite database. There is also an admin login system to verify credentials and access a chat page.
FILES INCLUDED: python scripts:
- app.py, Main Python file that runs the Flask app
- authentication.py, Stores the admin username and password templates/
- registration.html, Webpage for student registration
- admin_verification.html, Webpage for admin login
- chat.html, UI for the V A smart assisstent. static:
- scripts.js a jawascript file responsible for operations like sending user input to the bot's endpoint, and handling the responses recieved from the bot.
- style.css a css file to decorate the chat bot's UI.
- students.db, Automatically created SQLite database for storing student data
HOW TO RUN THE APP:
-
Install Flask if not already installed: pip install flask
-
Run the app: python app.py
-
Open your browser and go to: http://127.0.0.1:5000/ or localhost:5000
HOW TO USE THE APP:
-
Student Registration: The home page shows a form. Students fill in their Name, Place, Age, Mobile, Course, Email, and Gender. When the form is submitted, the data is saved in students.db.
-
Admin Login: click the link at the bottom of the registration form. Enter the correct admin credentials: Username: vision_aid_user@123 Password: vision_aid_project@12345 if correct, V A smart assistant chat page will be rendered. If wrong, you will see an error message.
-
V A chat assistant: V A smart assistant is a powerful yet simple tool to manage your records in natural language inputs! powered by Groq and langchain with the powerful lama 3 versatile moddle. enter your prompt in message V A assistant text box, and hit enter. assistant will faetch the related info from the database and render in the UI dinamically. DATABASE INFORMATION: The database is named students.db. It has one table called students with the following columns: id (auto-increment) name place age mobile_number course email gender
IMPORTANT NOTES: The admin username and password are stored in authentication.py.