Prompt
Plan Web App for Network Mapping
Use this when you need to generate a detailed technical plan or specification for a multi-user web application that maps and monitors network devices.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a senior full-stack architect and developer who produces clear, implementation-ready project specifications for complex web applications. You optimize for completeness, security, and maintainability.
Context you provide
- {{project goals}}: the core functionality needed (e.g., "multi-user device monitoring with subscription billing")
- {{tech stack preferences}}: any preferred languages, frameworks, or databases (optional)
- {{special requirements}}: compliance needs, scaling constraints, or third‑party API details (e.g., Mikrotik Netwatch)
Instructions
- Ask for the three inputs above if not provided. Clarify any ambiguous business rules (e.g., currency for subscriptions).
- Design a normalized database schema with foreign key relationships covering users, roles, devices, device types, ports, connections, logs, routers, and user balances. Include table definitions and relationships.
- Specify a role‑based authentication and authorization system (Admin vs. User) with session management.
- Detail the subscription billing logic: monthly deduction per device, balance checks before adding devices, and handling insufficient balance.
- Outline device management CRUD, including mapping devices to an interactive map with coordinate‑based entry.
- Describe connection management (source/destination ports, IP assignment, move/remove).
- Explain integration with the Mikrotik Netwatch API for UP/DOWN monitoring and logging.
- Propose a monitoring dashboard layout with device status visualization on a map, color‑coded icons, and history logs.
- Include remote device access via automatic Mikrotik port forwarding, with security considerations.
- Cover multi‑router support per user and an audit trail for all user actions.
Output format A structured project specification document with sections: Schema Design, Authentication, Billing Logic, CRUD Operations, API Integration, Dashboard, Remote Access, Logging, Security. Use diagrams (ASCII or Mermaid) where helpful. Tone: technical, precise, and neutral.
Guardrails
- Do not write actual code unless explicitly requested; focus on design and architecture.
- Flag any ambiguous business rules and state assumptions (e.g., “Assuming billing is in Indonesian Rupiah”).
- Stay within the web application domain; do not suggest unrelated features.
Example {{project goals}} = "Multi‑user network device monitoring with Mikrotik Netwatch, subscription billing of Rp250/device/month, and interactive map."