Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:50:06 +08:00
commit 5e3ca965d9
68 changed files with 11257 additions and 0 deletions

33
commands/new-react-pwa.md Normal file
View File

@@ -0,0 +1,33 @@
Generate a new offline-first Progressive Web App using React framework with Odoo Studio backend integration.
## What this command does:
- Invokes the `create-odoo-pwa` skill with React as the framework
- Generates a complete PWA project with smart caching, offline support, and Odoo integration
- Creates all necessary configuration files, components, hooks, and deployment setups
## Required Information:
Before starting, gather:
1. **Project name** (kebab-case, e.g., "expense-tracker", "inventory-manager")
2. **Odoo model name** (without `x_` prefix, e.g., "expense", "inventory")
3. **Model display name** (human-readable, e.g., "Expense", "Inventory Item")
4. **Deployment target** (optional: vercel, github, cloudflare, netlify)
## Steps:
1. Ask the user for the required information listed above
2. Invoke the `create-odoo-pwa` skill with framework set to "react"
3. Generate the complete React PWA project structure
4. Create comprehensive documentation (README.md, CLAUDE.md, API.md)
5. Provide next steps for setup and deployment
## Example prompts to use this command:
- `/new-react-pwa` - Interactive mode, will ask for all parameters
- User: "Create a React PWA for tracking expenses with Odoo"
- User: "Generate an inventory management app using React and Odoo Studio"
## After generation:
Remind the user to:
1. Navigate to the project directory
2. Copy `.env.example` to `.env` and configure Odoo credentials
3. Run `npm install` to install dependencies
4. Run `npm run dev` to start development server
5. Test the Odoo connection and sync functionality