How lc-lly/ai-lab works
This repository is a prototype lab-reservation system with a Vue interface and a small FastAPI backend. The visible user journey is navigating to the manager area, viewing home or lab screens, and using login or registration forms; the login currently simulates success locally rather than authenticating with the backend. The manager shell also exposes equipment and user-management menu entries, but their screens and reservation/agent workflows are not present in the sampled tree. Backend evidence shows startup table creation and a user model, not API endpoints for these frontend actions.
Main entry points: index.js Route map · database.py DB session and base · Layout.vue Manager shell · main.js Vue bootstrap
Components 15
Web application
- Vue bootstrap
frontend/src/main.js - App view
frontend/src/App.vue - Route map
frontend/src/router/index.js - Manager shell
frontend/src/layouts/Layout.vue - Login form
frontend/src/views/Login.vue - Registration form
frontend/src/views/Register.vue
Backend and persistence
- FastAPI app
backend/app/main.py - DB settings
backend/app/config.py - DB session and base
backend/app/database.py - User model
backend/app/models/user.py - Configured database
Reservation interface
- Home screen
frontend/src/views/Home.vue - Lab screen
frontend/src/views/Lab.vue - Admin screens
frontend/src/views
Other components
- Visitor
Connections 17
- Vue bootstrap → App view: mounts
frontend/src/main.js - Vue bootstrap → Route map: installs
frontend/src/main.js - Visitor → Route map: navigates
- Route map → Manager shell: routes to
frontend/src/router/index.js - Route map → Login form: routes to
frontend/src/router/index.js - Route map → Registration form: routes to
frontend/src/router/index.js - Route map → Home screen: routes to
frontend/src/router/index.js - Route map → Lab screen: routes to
frontend/src/router/index.js - App view → Route map: renders outlet
frontend/src/App.vue - Manager shell → Route map: renders child outlet
frontend/src/layouts/Layout.vue - Manager shell → Admin screens: offers menu entries
frontend/src/layouts/Layout.vue - Login form → Route map: redirects after success
frontend/src/views/Login.vue - FastAPI app → User model: imports model
backend/app/main.py - FastAPI app → DB session and base: creates tables
backend/app/main.py - DB session and base → DB settings: loads URL
backend/app/database.py - DB session and base → Configured database: connects
backend/app/database.py - User model → DB session and base: extends base
backend/app/models/user.py