How wwwyssa/opilab3 works
This repository contains two separate applications: a Docker tutorial todo service and a point-checking web application. The todo workflow serves a UI and exposes item CRUD routes backed by selectable SQLite or MySQL persistence. The point-checker workflow authenticates users, then lets them submit and view points with hit results. Backend Java components are represented from the tree, but their internal call relationships were not excerpted; those links are therefore omitted. The frontend-to-backend HTTP calls are visible in the Angular source.
Main entry points: src/index.js Express server · persistence/index.js Adapter selector · app.routes.ts UI routes · getItems.js List items
Components 22
Todo service
- Express server
dockerTutorial/app/src/index.js - Todo interface
dockerTutorial/app/src/static/js/app.js - List items
dockerTutorial/app/src/routes/getItems.js - Add item
dockerTutorial/app/src/routes/addItem.js - Update item
dockerTutorial/app/src/routes/updateItem.js - Delete item
dockerTutorial/app/src/routes/deleteItem.js
Todo persistence
- Adapter selector
dockerTutorial/app/src/persistence/index.js - MySQL adapter
dockerTutorial/app/src/persistence/mysql.js - SQLite adapter
dockerTutorial/app/src/persistence/sqlite.js - Todo database
Point-checker UI
- Angular app
laba4/frontend/src/app/app.ts - Login/register
laba4/frontend/src/app/auth/auth.component.ts - Point graph
laba4/frontend/src/app/home/home.component.ts - UI routes
laba4/frontend/src/app/app.routes.ts
Point-checker backend
- Authentication API
laba4/src/main/java/com/example/laba4/auth/AuthController.java - Point API
laba4/src/main/java/com/example/laba4/pointChecker/PointController.java - Auth service
laba4/src/main/java/com/example/laba4/auth/AuthService.java - Hit checker
laba4/src/main/java/com/example/laba4/pointChecker/HitCheckService.java - User repository
laba4/src/main/java/com/example/laba4/auth/UserRepository.java - Point repository
laba4/src/main/java/com/example/laba4/pointChecker/PointRepository.java
Other components
- Todo user
- Point-checker user
Connections 20
- Todo user → Express server: sends requests
dockerTutorial/app/src/index.js - Express server → Todo interface: serves static
dockerTutorial/app/src/index.js - Express server → List items: routes GET
dockerTutorial/app/src/index.js - Express server → Add item: routes POST
dockerTutorial/app/src/index.js - Express server → Update item: routes PUT
dockerTutorial/app/src/index.js - Express server → Delete item: routes DELETE
dockerTutorial/app/src/index.js - List items → Adapter selector: reads items
dockerTutorial/app/src/routes/getItems.js - Add item → Adapter selector: stores item
dockerTutorial/app/src/routes/addItem.js - Update item → Adapter selector: updates and reads
dockerTutorial/app/src/routes/updateItem.js - Delete item → Adapter selector: removes item
dockerTutorial/app/src/routes/deleteItem.js - Adapter selector → MySQL adapter: selects by env
dockerTutorial/app/src/persistence/index.js - Adapter selector → SQLite adapter: selects by env
dockerTutorial/app/src/persistence/index.js - MySQL adapter → Todo database: queries MySQL
dockerTutorial/app/src/persistence/mysql.js - SQLite adapter → Todo database: queries SQLite
dockerTutorial/app/src/persistence/sqlite.js - Point-checker user → Angular app: uses interface
- Angular app → UI routes: loads routes
laba4/frontend/src/app/app.ts - UI routes → Login/register: routes auth
laba4/frontend/src/app/app.routes.ts - UI routes → Point graph: routes home
laba4/frontend/src/app/app.routes.ts - Login/register → Authentication API: posts credentials
laba4/frontend/src/app/auth/auth.component.ts - Point graph → Point API: loads and submits
laba4/frontend/src/app/home/home.component.ts