wiki:FirstPrototype

Prototype Implementation

Overview

The first prototype is a command-line interface (CLI) application written in Python that demonstrates six use cases through direct interaction with the PostgreSQL database. The prototype uses psycopg2 for database connectivity and bcrypt for password hashing. All data selections are presented as numbered lists so the user never needs to remember identifiers.

Technology

ComponentTechnology
LanguagePython 3
Database Driverpsycopg2-binary
Password Hashingbcrypt
DatabasePostgreSQL 16 (Docker)

Implemented Use Cases

IDTitleActorDetails
UC0001Browse Available ResourcesAll rolesImplementation
UC0002Make a Resource ReservationTeaching StaffImplementation
UC0003Approve or Reject ReservationsAdministratorImplementation
UC0007View Resource Usage AnalyticsAdministratorImplementation
UC0008Log In to the SystemAll rolesImplementation
UC0009Register a New UserAdministratorImplementation

Application Structure

FileDescription
main.pyEntry point: login with email/password, role-based main menu
db.pyDatabase connection helper and shared UI utilities
uc_browse.pyUC0001: Browse Available Resources
uc_reserve.pyUC0002: Make a Resource Reservation
uc_approve.pyUC0003: Approve or Reject Reservations
uc_analytics.pyUC0007: View Resource Usage Analytics
uc_users.pyUC0009: Register a New User

Source Code

The source code is publicly available at: https://github.com/Teo03/FRRUAS-prototype

Build and Run

See BuildInstructions.

Last modified 5 days ago Last modified on 03/16/26 21:52:50
Note: See TracWiki for help on using the wiki.