This document defines Qoder's standards and procedures for web application development tasks. It covers framework selection, project initialization workflows, testing protocols, and preview setup requirements. For general code editing and validation workflows, see Code Change Validation Pipeline. For terminal operation details, see Tool Ecosystem and Categories.
Sources: Qoder/prompt.txt98-106 Qoder/prompt.txt212-226
When the user does not specify which frameworks to use, Qoder defaults to modern JavaScript frameworks with the following priority:
| Framework | Use Case | Initialization Command |
|---|---|---|
| React with Vite | Single-page applications, component libraries | npm create vite@latest |
| Next.js | Full-stack applications, SSR, static sites | npx create-next-app@latest |
The selection principle is to always use CLI initialization tools rather than writing project structure from scratch. This ensures proper configuration, dependency management, and build tooling setup from the start.
Sources: Qoder/prompt.txt102 Qoder/prompt.txt214-216
Diagram: Web Application Initialization Process
Sources: Qoder/prompt.txt102-103 Qoder/prompt.txt215
Before presenting a web application to the user, Qoder must execute a validation workflow using curl to access the website and check for runtime errors. This mandatory step catches issues like:
Diagram: Web Application Testing Workflow
Sources: Qoder/prompt.txt104 Qoder/prompt.txt217
The typical validation command pattern is:
This is executed via the run_in_terminal tool, not by outputting the command to the user.
Sources: Qoder/prompt.txt104 Qoder/prompt.txt19
After starting a web development server, Qoder must set up the preview browser using the run_preview tool. This enables visual monitoring and interactive testing.
Diagram: Preview Setup Architecture
Sources: Qoder/prompt.txt222-225 Qoder/prompt.txt334
Sources: Qoder/prompt.txt222-225
Modern frameworks like Next.js implement hot reload (Hot Module Replacement), which means:
This behavior affects workflow:
run_in_terminal with background mode for dev serversget_terminal_outputSources: Qoder/prompt.txt105-106 Qoder/prompt.txt218
Qoder provides three web-specific tools:
| Tool | Purpose | Usage Context |
|---|---|---|
run_preview | Set up preview browser for web servers | After starting development server |
fetch_content | Fetch content from web pages | Research, documentation retrieval |
search_web | Search the web for real-time information | Current libraries, API documentation |
Sources: Qoder/prompt.txt331-334
Diagram: Web Tools Integration with Development Cycle
Sources: Qoder/prompt.txt331-334 Qoder/prompt.txt98-106
npm create vite@latestnpm run buildnpx create-next-app@latestnpm run buildSources: Qoder/prompt.txt102 Qoder/prompt.txt214
Web application development follows the same strict file editing rules as general development:
read_filesearch_replace as primary editing toolget_problems after every code changecurl testing before showing to user (web-specific addition)For detailed file editing rules, see File Operations and Editing Rules.
Sources: Qoder/prompt.txt237-243 Qoder/prompt.txt104
Web development heavily relies on terminal operations:
npm, yarn, pnpm)curl testing commandsAll terminal operations must use run_in_terminal tool, never output commands as code blocks to user.
Sources: Qoder/prompt.txt19 Qoder/prompt.txt103
Diagram: Web App Task Decision Flow
Sources: Qoder/prompt.txt98-106 Qoder/prompt.txt212-226
| Requirement | Tool/Action | Penalty for Violation |
|---|---|---|
| Use CLI initialization for new projects | run_in_terminal with CLI tools | Quality degradation |
| Test with curl before showing to user | run_in_terminal with curl | Undetected errors |
| Set up preview browser after starting server | run_preview | Poor user experience |
| Follow standard file editing rules | search_replace (primary), validate with get_problems | $100,000,000 penalty |
| Never output terminal commands as code blocks | Use run_in_terminal tool | Communication violation |
Sources: Qoder/prompt.txt98-106 Qoder/prompt.txt212-226 Qoder/prompt.txt237-243
Refresh this wiki