How nancygos/employee-management works
Employee Salary Records is an HR web app for searching a 10,000-person directory, viewing employee salary history, recording salary changes, and reviewing payroll summaries. The browser routes users to an overview, directory, or employee page; those pages call the Rails API, which exposes overview and employee endpoints. The backend also contains salary/pay analytics and persistent employee and salary records. The API routes and browser requests are visible, but controller-to-model and analytics wiring was not shown, so those internal links are omitted.
Main entry points: App.jsx Page routing · routes.rb API routing · EmployeePage.jsx Employee record · employees_controller.rb Employee endpoints
Components 19
Web app
- React entry
frontend/src/main.jsx - Page routing
frontend/src/App.jsx - Employee directory
frontend/src/Directory.jsx - Employee record
frontend/src/EmployeePage.jsx - Payroll overview
frontend/src/Overview.jsx - API URL config
frontend/src/api.js
Rails API
- Overview endpoint
backend/app/controllers/api/overview_controller.rb - Employee endpoints
backend/app/controllers/api/employees_controller.rb - Salary endpoint
backend/app/controllers/api/salaries_controller.rb - API routing
backend/config/routes.rb
Pay domain
- Employee records
backend/app/models/employee.rb - Salary history
backend/app/models/salary.rb - Pay summaries
backend/lib/pay/overview.rb - Currency rates
backend/lib/pay/rates.rb - SQLite database
backend/db/schema.rb
Application runtime
- Rails boot
backend/config/boot.rb - Rails application
backend/config/application.rb - Rails environment
backend/config/environment.rb
Other components
- HR user
Connections 14
- HR user → React entry: opens app
README.md - React entry → Page routing: renders
frontend/src/main.jsx - Page routing → Employee directory: routes to
frontend/src/App.jsx - Page routing → Employee record: routes to
frontend/src/App.jsx - Page routing → Payroll overview: routes to
frontend/src/App.jsx - Employee directory → Employee endpoints: requests list
frontend/src/Directory.jsx - Employee record → Employee endpoints: requests record
frontend/src/EmployeePage.jsx - Employee record → Salary endpoint: posts change
frontend/src/EmployeePage.jsx - Payroll overview → Overview endpoint: requests summary
frontend/src/Overview.jsx - API routing → Overview endpoint: routes to
backend/config/routes.rb - API routing → Employee endpoints: routes to
backend/config/routes.rb - API routing → Salary endpoint: routes to
backend/config/routes.rb - Rails application → Rails boot: requires
backend/config/application.rb - Rails environment → Rails application: loads
backend/config/environment.rb