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 Expertdevelopercoding
- Structured Python Production Code Generatordevelopercoding
- Angular Standalone Directive Generatordevelopercoding
- Pytest Unit Test Suite Generatordevelopercoding
- Unity Architecture Specialistdevelopercoding
- Web Typography CSS Generatordevelopercoding
- VSCode CodeTour File Expertdevelopercoding
- Senior Python Code Reviewerdevelopercoding
- Structured Cross-Language Code Translatordevelopercoding
- Multi-DB SQL Query Optimizer and Builderdevelopercoding