💻 Coding & Development

Fullstack Software Developer

📁 Coding & Development 👤 Contributed by @yusuffgur 🗓️ Updated
The 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'

Example outputs

Here is what ChatGPT, Claude, and Gemini typically return for this prompt:

🚀 ChatGPT

I'll help you design a secure web application with Golang backend and Angular frontend. For the architecture, I recommend: Backend - Golang with Gin framework, PostgreSQL database with three tables (users, vehicles, roles), JWT middleware for authentication. Frontend - Angular 15+ with route guards and role-based components. The user registration flow will hash passwords with bcrypt, assign roles (admin/user/company), and return JWT tokens with role claims. Each vehicle entry will be associated with a user_id and have role-based access controls to ensure users can only view/edit their own vehicles while admins have full access.

✨ Claude

For this system, I'd suggest a layered architecture: a Golang REST API using the Gin framework with a PostgreSQL database, and an Angular SPA for the frontend. The core entities would be User (with role field), Vehicle (with foreign key to User), and potentially a separate Companies table if companies need distinct attributes. For JWT security, implement middleware that validates tokens on protected routes and checks role claims before allowing operations. One consideration: you'll want to clarify whether 'company' users can see all vehicles under their company or just their own—this affects your access control logic significantly.

💎 Gemini

Here's a high-level architecture: Backend uses Golang with Gin/Echo framework, GORM for database ORM (PostgreSQL), and jwt-go library for token generation. Database schema includes users table (id, email, password_hash, role), vehicles table (id, user_id, make, model, year, vin), and a roles enum (admin, user, company). Frontend Angular app uses HttpInterceptor to attach JWT tokens, guards for route protection, and separate modules per role. Authentication flow: POST /register creates user with bcrypt-hashed password, POST /login returns JWT with role claim, middleware validates JWT on protected endpoints like GET/POST /vehicles with role-based authorization checks.

How to use this prompt

Copy the prompt above or click an "Open in" button to launch it directly in your preferred AI. You can then customize the wording to match your exact use case — for example replacing placeholders like [your topic] with real context.

Which AI model works best

Claude Opus 4 and Sonnet 4.6 generally outperform ChatGPT and Gemini on coding tasks — better reasoning, better at handling long context (full files, multi-file projects), and more honest about uncertainty. ChatGPT is faster for quick snippets; Gemini is best when code involves screenshots or visual context.

How to customize this prompt

Swap the language mentioned in the prompt (Python, JavaScript, etc.) for whichever stack you're on. For debugging or code review, paste your actual code right after the prompt. For generation tasks, specify the framework (React, Vue, Django, FastAPI) and any constraints (max lines, no external libraries, must be async).

Common use cases

  • Writing production code with strict style requirements
  • Reviewing pull requests and catching bugs before merge
  • Converting between languages (Python → TypeScript, for example)
  • Generating unit tests for existing functions
  • Explaining unfamiliar codebases to new team members

Variations

Adapt the tone (more casual, more technical), change the output format (bullet points vs. paragraphs), or add constraints (word limits, target audience).

Related prompts