How angelgaxiola552/proyecto-desarrollo-web works
NetScope is a web application for configuring Nmap scans without writing commands, launching them, and reviewing results. Users authenticate, manage targets and reusable scan profiles, submit scans, then track, filter, edit, cancel, or inspect scan results; admins also manage users and view activity and statistics. The React client calls the Express API, which validates requests and uses in-memory collections. Scan execution invokes the external Nmap process. The README documents all major screens and API domains; some page and route implementations were not sampled, so their internal links are omitted where unverified.
Main entry points: App.jsx Screen routing · api.js API client · scans.controller.js Scan orchestration · store.js Collections
Components 28
React client
- Screen routing
client/src/App.jsx - Session context
client/src/context/AuthContext.jsx - API client
client/src/api.js - New scan
client/src/pages/NuevoEscaneo.jsx - Nmap options
client/src/components/OpcionesNmap.jsx - Scan history
client/src/pages/Historial.jsx - Scan detail
client/src/pages/DetalleEscaneo.jsx - Target management
client/src/pages/Targets.jsx - Profile management
client/src/pages/Perfiles.jsx - Dashboard
client/src/pages/Dashboard.jsx - Activity view
client/src/pages/Actividad.jsx - User administration
client/src/pages/AdminUsuarios.jsx - Account profile
client/src/pages/Perfil.jsx - Nmap XML reader
client/src/utils/nmapXml.js
Express API
- API application
server/src/app.js - Scan routes
server/src/routes/scans.js - Scan validation
server/src/validators/scan.validators.js - Activity logger
server/src/services/activityLogger.js - Target operations
server/src/controllers/targets.controller.js - Profile operations
server/src/controllers/profiles.controller.js - User operations
server/src/controllers/users.controller.js - Statistics
server/src/controllers/stats.controller.js - Activity queries
server/src/controllers/activity.controller.js
Scan runtime
- Scan orchestration
server/src/controllers/scans.controller.js - Command builder
server/src/services/buildCommand.js
In-memory state
- Collections
server/src/data/store.js
Other components
- User
- Nmap process
Connections 36
- User → Screen routing: uses
README.md - Screen routing → New scan: routes to
client/src/App.jsx - Screen routing → Scan history: routes to
client/src/App.jsx - Screen routing → Scan detail: routes to
client/src/App.jsx - Screen routing → Target management: routes to
client/src/App.jsx - Screen routing → Profile management: routes to
client/src/App.jsx - Screen routing → Dashboard: routes to
client/src/App.jsx - Screen routing → Activity view: routes to
client/src/App.jsx - Screen routing → User administration: routes to
client/src/App.jsx - Screen routing → Account profile: routes to
client/src/App.jsx - New scan → Nmap options: renders
client/src/pages/NuevoEscaneo.jsx - New scan → API client: requests
client/src/pages/NuevoEscaneo.jsx - Scan history → API client: requests
client/src/pages/Historial.jsx - Scan detail → API client: requests
client/src/pages/DetalleEscaneo.jsx - Scan detail → Nmap XML reader: parses with
client/src/pages/DetalleEscaneo.jsx - Target management → API client: requests
client/src/pages/Targets.jsx - Profile management → API client: requests
README.md - Dashboard → API client: requests
README.md - Activity view → API client: requests
README.md - User administration → API client: requests
client/src/pages/AdminUsuarios.jsx - Account profile → API client: requests
client/src/pages/Perfil.jsx - API client → API application: calls API
README.md - API application → Scan routes: mounts
server/src/app.js - Scan routes → Scan orchestration: dispatches
server/src/routes/scans.js - Scan orchestration → Scan validation: validates with
server/src/controllers/scans.controller.js - Scan orchestration → Command builder: builds command
server/src/controllers/scans.controller.js - Scan orchestration → Nmap process: spawns
server/src/controllers/scans.controller.js - Scan orchestration → Collections: reads and updates
server/src/controllers/scans.controller.js - Scan orchestration → Activity logger: logs events
server/src/controllers/scans.controller.js - Activity logger → Collections: writes
server/src/services/activityLogger.js - Target operations → Collections: reads and updates
server/src/controllers/targets.controller.js - Profile operations → Collections: reads and updates
server/src/controllers/profiles.controller.js - User operations → Collections: reads and updates
server/src/controllers/users.controller.js - User operations → Activity logger: logs events
server/src/controllers/users.controller.js - Statistics → Collections: reads
server/src/controllers/stats.controller.js - Activity queries → Collections: reads
server/src/controllers/activity.controller.js