How jabame731/sql-injection-activity works
This repository implements a user authentication and account-management application: an Angular client provides login, welcome, and user screens, while an Express/MySQL backend exposes login and registration handlers. The principal flow is login submission through the client auth service to the backend route, controller, and database, with authenticated navigation guarded by client state. Registration is implemented server-side, but no client registration screen is present in the tree. The frontend-to-backend link is shown as unverified because the configured client URL and backend route mounting are not fully evidenced together.
Main entry points: app.routes.ts Client routes · controller/user.ts User controllers · infrastructure/user.ts User operations · auth.service.ts Auth service
Components 19
Angular client
- App bootstrap
frontend/src/main.ts - Root app shell
frontend/src/app/app.ts - Router configuration
frontend/src/app/app.config.ts - Client routes
frontend/src/app/app.routes.ts - Welcome screen
frontend/src/app/welcome/welcome.ts - Users screen
frontend/src/app/users/users.ts
Client authentication
- Login screen
frontend/src/app/login/login.ts - Auth service
frontend/src/app/auth/auth.service.ts - Auth guard
frontend/src/app/auth/auth.guard.ts - Browser local storage
Backend API
- Express server entry
backend/src/index.ts - User API routes
backend/src/routes/user.ts - User controllers
backend/src/controller/user.ts - User operations
backend/src/infrastructure/user.ts - Response types
backend/src/models/response.model.ts - User types
backend/src/models/user.model.ts
Persistence
- MySQL connection
backend/src/config/mysql.db.ts - MySQL database
Other components
- Application user
Connections 21
- Application user → Login screen: submits credentials
frontend/src/app/login/login.ts - App bootstrap → Root app shell: bootstraps
frontend/src/main.ts - App bootstrap → Router configuration: provides config
frontend/src/main.ts - Router configuration → Client routes: provides routes
frontend/src/app/app.config.ts - Client routes → Login screen: routes to
frontend/src/app/app.routes.ts - Client routes → Welcome screen: routes to
frontend/src/app/app.routes.ts - Client routes → Users screen: routes to
frontend/src/app/app.routes.ts - Client routes → Auth guard: guards routes
frontend/src/app/app.routes.ts - Login screen → Auth service: calls login
frontend/src/app/login/login.ts - Auth guard → Auth service: checks session
frontend/src/app/auth/auth.guard.ts - Auth service → Browser local storage: reads/writes session
frontend/src/app/auth/auth.service.ts - Auth service → User API routes: posts login
- Express server entry → User API routes: mounts routes
backend/src/index.ts - User API routes → User controllers: dispatches handlers
backend/src/routes/user.ts - User controllers → User operations: calls operations
backend/src/controller/user.ts - User operations → MySQL connection: gets connection
backend/src/infrastructure/user.ts - MySQL connection → MySQL database: creates pool
backend/src/config/mysql.db.ts - User controllers → Response types: uses response types
backend/src/controller/user.ts - User controllers → User types: uses user types
- User operations → Response types: shapes responses
- User operations → User types: reads user fields