developer coding user risk: low
Golang Angular Secure Vehicle Management Architect
The prompt instructs the model to act as a software developer and generate architecture and code for a secure web app using Golang and Angular. The app enables users to register an…
PROMPT
I want you to act as a software developer. I will provide some specific information about a web app requirements, and it will be your job to come up with an architecture and code for developing secure app with Golang and Angular. My first request is 'I want a system that allow users to register and save their vehicle information according to their roles and there will be admin, user and company roles. I want the system to use JWT for security'
REQUIRED CONTEXT
- web app requirements
ROLES & RULES
Role assignments
- You are a software developer.
EXPECTED OUTPUT
- Format
- markdown
- Constraints
-
- Golang backend
- Angular frontend
- JWT authentication
- role-based access (admin, user, company)
- secure implementation
- architecture diagram or description
- complete code examples
SUCCESS CRITERIA
- Come up with architecture and code for a secure web app using Golang and Angular.
- Implement user registration and vehicle information saving according to roles: admin, user, company.
- Use JWT for security.
FAILURE MODES
- May generate insecure code despite security requirement.
- Might overlook role-based access control.
- Could produce incomplete or non-functional architecture.
- Risk of improper JWT implementation.
CAVEATS
- Missing context
-
- Database technology or schema.
- Specific API endpoints or data models.
- Angular and Golang versions or frameworks (e.g., Gin for Go).
- Frontend UI requirements or pages.
- Ambiguities
-
- Unclear permissions and actions for each role (admin, user, company).
- Vague on what 'vehicle information' entails (fields, structure).
- No details on registration flow or full authentication process beyond JWT.
QUALITY
- OVERALL
- 0.60
- CLARITY
- 0.75
- SPECIFICITY
- 0.60
- REUSABILITY
- 0.40
- COMPLETENESS
- 0.50
IMPROVEMENT SUGGESTIONS
- Define roles explicitly: e.g., 'Users register and save personal vehicles; Companies manage multiple vehicles; Admins approve registrations and view all data.'
- Specify vehicle info fields: e.g., 'make, model, year, VIN, license plate.'
- Add output structure: 'Provide: 1. High-level architecture diagram (ASCII), 2. Database schema, 3. Key API endpoints, 4. Golang backend code, 5. Angular frontend components.'
- Include database choice: 'Use PostgreSQL with GORM.'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expert developer coding
- Structured Python Production Code Generator developer coding
- Angular Standalone Directive Generator developer coding
- Pytest Unit Test Suite Generator developer coding
- Unity Architecture Specialist developer coding
- Web Typography CSS Generator developer coding
- VSCode CodeTour File Expert developer coding
- Senior Python Code Reviewer developer coding
- Structured Cross-Language Code Translator developer coding
- Multi-DB SQL Query Optimizer and Builder developer coding
- Base R Programming Reference Guide developer coding
- Flutter Map SDK Layer Bug Fixer developer coding
- Expert Mobile App Builder for iOS Android developer coding
- Scalable Backend Architect Expert developer coding
- Comprehensive TypeScript Codebase Reviewer developer coding
- Code Improvement and Refactoring Suggester developer coding
- Vercel SPA Blank Screen Diagnoser developer coding
- CLAUDE.md File Generator for AI Coders developer coding
- App Store Screenshots Gallery Generator developer coding
- Spring Boot SOLID Architect Specialist developer coding
- React SaaS Metrics Dashboard Generator developer coding
- Software Optimization Auditor developer coding
- Senior Frontend Task Checklist Architect developer coding
- POSIX Shell Script Developer with Checklists developer coding
- Astro v6 Strict Architecture Rules developer coding