Skip to content

Quantizate/DBMS_frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS 432-Assignment 3

Table of Contents:

Introduction:

This lab management website, created by SQL Dummies, is a platform designed to organize and enhance the management of laboratories, offering a comprehensive solution for professors, students, lab technicians, and administrators alike. It offers multiple features such as providing lab details, managing inventory, regulating course administration, booking labs, keeping profiles of professors and students, etc. A login/registration page allows different views to the database, allowing admins to delete, rename, update and insert data, while restricting students to lab booking and issuing tools. All our data is stored in an optimized database, which is currently tested using dummy data. Various tools such as HTML, CSS, Tailwind, etc. are used for frontend, and MySQL and Flask are used to create a smooth interaction to the databases. Detailed information about the features are given below.



Steps to run Web-app:

  1. Install the libraries for requirements.txt: pip install -r requirements.txt
  2. Clone the repository : <link> Terminal: git clone https://github.com/kaushal-003/LabManagementWebApp.git

  3. Run the SQL script in the MySQL Workbench:
    • Go to File > Run SQL script.. choose the .sql file(sql script, and click Run.
    sql
    **Note:** The database should be visible in navigation pane: navigation_pane
    - This script will create a database called lab_bookings, corresponding tables, and it will insert some pre-required data into the tables.



5. Run the app.py code.
python app.py

Login Page:

dummy_data_1

dummy_data_1

Hero Page:

dummy_data_1

dummy_data_1

dummy_data_1

3.3.1: Creating Dummy Database

LOCK TABLES `students` WRITE;
/*!40000 ALTER TABLE `students` DISABLE KEYS */;
INSERT INTO `students` 
VALUES 
(11637578,'Anthony',NULL,'Marquez',2017,'BTech',0,'Investigation','CSE','anthony.marquez@example.com',1234567890,1),
(12278656,'Angela','Daniel','Martin',2019,'BTech',0,'Documentation','ME','angela.martin@example.com',1234567891,1),
(14790536,'Daniel','Richard','Scott',2021,'MTech',0,'Calibration','MSE','daniel.scott@example.com',1234567892,1);
/*!40000 ALTER TABLE `students` ENABLE KEYS */;
UNLOCK TABLES;




LOCK TABLES `staff` WRITE;
/*!40000 ALTER TABLE `staff` DISABLE KEYS */;
INSERT INTO `staff` VALUES (1090324586,'Antonio','Candice','Fritz',21076.4,'Assistant','Anatomy Lab','antoniofritz@example.com',7513498620, 'https://drive.google.com/file/d/19uY3X76bigNjiPrmo-qrM6UUFvoXbNCc/view?usp=sharing', 'man wearing proffessional attire _ img1',1),
(1175259019,'Larry',NULL,'Clark',48988.8,'Researcher','Biochemistry Lab','larryclark@example.com',2385167904, 'https://drive.google.com/file/d/1UVrg23vtXXhAelbIsNwhuPQ60PapMhlK/view?usp=sharing', 'man wearing proffessional attire _ img2',1),
(1357028218,'Cody',NULL,'Lopez',38466.9,'Assistant','Biology Lab','codylopez@example.com',6975814320, 'https://drive.google.com/file/d/1UCkE2pw8BxXX4HAkfJ6hvuPbd5Hff7ww/view?usp=sharing', 'man wearing proffessional attire _ img3',1),
(1396986120,'Jessica',NULL,'Frost',71804.4,'Researcher','Botany Lab','jessicafrost@example.com',4297681053, 'https://drive.google.com/file/d/1rck0DeK398QA4zGW1cJANB5aupO1U0Qp/view?usp=sharing', 'man wearing proffessional attire _ img4',1);
/*!40000 ALTER TABLE `staff` ENABLE KEYS */;
UNLOCK TABLES;

dummy_data_1

dummy_data_2



3.3.2: Section-2 Dynamic Execution

admin_opr

1. INSERT:

a. ADMIN VIEW:

In course_slot table:

Before: dummy_data_2

After: dummy_data_2

In student table:

Add: dummy_data_2

Before: dummy_data_2

After: dummy_data_2

2. UPDATE

a. ADMIN VIEW:

In student table:

Before: dummy_data_2

After: dummy_data_2

In Staff table:

Before: dummy_data_2

After: dummy_data_2

3. DELETE

a. ADMIN VIEW:

In student table:

Before: dummy_data_2

After: dummy_data_2

In Staff table:

Before: dummy_data_2

After: dummy_data_2

4. WHERE

a. ADMIN VIEW:

In lab_booking table:

Data: dummy_data_2

Before: dummy_data_2

After: dummy_data_2

5. RENAME:

Data: dummy_data_2

Before: dummy_data_2

After: dummy_data_2

Views:

1. Admin:

webpage_17

2. Staff:

webpage_22

3. Professor:

Profile: webpage_18

webpage_19

4. Student:

profile: webpage_25

webpage_26

Webpage:

dummy_data_1

dummy_data_1

dummy_data_1

dummy_data_1

dummy_data_1

webpage_1

webpage_2

webpage_3

webpage_4

webpage_5

webpage_6

webpage_7

webpage_8

webpage_9

webpage_10

webpage_11

webpage_12

webpage_13

webpage_14

webpage_15

webpage_16

webpage_17

webpage_18

webpage_19

webpage_20

webpage_21

webpage_22

webpage_23

webpage_24

webpage_25

webpage_26

webpage_27

webpage_28

webpage_29

webpage_30

Contributions:

Group 1

Manan Jain
  • Created the front-end of the lab webpage.
  • Used HTML to create the front-end structure of the lab webpage.
  • Incorporated navbar and footer using Bootstrap.
  • Applied CSS styling to enhance the visual appearance and utilized CSS techniques such as flexbox for responsive design.
  • Contributed in the ReadMe file.
Anish Karnik
  • Created templates related to Admin Page
  • Worked on frontend of Profile page.
  • Worked on client-side related renderings using Javascript.
Srujan Kumar Shetty
  • Created API routes for checking availability of lab slots and equipments.
  • Worked on different HTML templates.
  • Helped in styling, password constraints.
Husain Malawat
  • Worked on Hero page frontend.
  • Contributed to ReadMe file.
  • Helped in route testing, user authentication.

Group 2

Sachin Jalan
  • Worked on flask integration with MySQL.
  • Helped in testing routing and admin operations.
  • Worked on routing of lab bookings, issue equipment.
Kaushal Kothiya
  • Worked in backend implementation of the login and authentication system recognizing different user roles.
  • Worked on designing backend routes.
  • Helped in flask integration with MySQL.
Ameya Tajne
  • Tested the webapp, views, and dynamic operations.
  • Helped in debugging errors found during testing.
  • Provided visual documentation of the program's execution in the ReadMe file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published