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