Comandi Divjoy¶
Traduzione: Copia tutti i comandi
Traduzione: Generare PDF
< >
Comandi e flussi di lavoro completi Divjoy per la generazione e lo sviluppo di codebase React.
## Creazione di un progetto
|Command|Description|
|---------|-------------|
|`npx create-divjoy-app my-app`|Create new Divjoy project|
|`npm create divjoy-app@latest`|Create with latest template|
|`yarn create divjoy-app my-app`|Create with Yarn|
|`git clone my-app`|Clone generated repository|
## Comandi di sviluppo
|Command|Description|
|---------|-------------|
|`npm start`|Start development server|
|`npm run dev`|Start development mode|
|`yarn dev`|Start with Yarn|
|`npm run build`|Build for production|
|`npm run preview`|Preview production build|
|`npm test`|Run test suite|
|`npm run test:watch`|Run tests in watch mode|
|`npm run lint`|Run ESLint|
|`npm run format`|Format code with Prettier|
## Operazioni di database
|Command|Description|
|---------|-------------|
|`npm run db:migrate`|Run database migrations|
|`npm run db:seed`|Seed database with sample data|
|`npm run db:reset`|Reset database|
|`npm run db:studio`|Open database studio|
|`npm run db:generate`|Generate Prisma client|
|`npm run db:push`|Push schema to database|
## Setup di autenticazione
|Command|Description|
|---------|-------------|
|`npm run auth:setup`|Setup authentication|
|`npm run auth:migrate`|Migrate auth tables|
|`npm run auth:seed`|Seed auth data|
|`npm run auth:test`|Test authentication flow|
## Comandi di distribuzione
|Command|Description|
|---------|-------------|
|`npm run deploy`|Deploy to production|
|`npm run deploy:vercel`|Deploy to Vercel|
|`npm run deploy:netlify`|Deploy to Netlify|
|`npm run deploy:aws`|Deploy to AWS|
|`npm run build:docker`|Build Docker image|
|`docker-compose up`|Start with Docker Compose|
## Configurazione dell'ambiente
|Command|Description|
|---------|-------------|
|`cp .env.example .env.local`|Copy environment template|
|`npm run env:setup`|Setup environment variables|
|`npm run env:validate`|Validate environment config|
## Generazione di componenti UI
|Command|Description|
|---------|-------------|
|`npm run generate:component`|Generate new component|
|`npm run generate:page`|Generate new page|
|`npm run generate:hook`|Generate custom hook|
|`npm run generate:api`|Generate API route|
## Styling e Theming
|Command|Description|
|---------|-------------|
|`npm run theme:build`|Build theme files|
|`npm run theme:watch`|Watch theme changes|
|`npm run css:build`|Build CSS files|
|`npm run tailwind:build`|Build Tailwind CSS|
## Comandi di prova
|Command|Description|
|---------|-------------|
|`npm run test:unit`|Run unit tests|
|`npm run test:integration`|Run integration tests|
|`npm run test:e2e`|Run end-to-end tests|
|`npm run test:coverage`|Generate test coverage|
|`npm run cypress:open`|Open Cypress test runner|
|`npm run cypress:run`|Run Cypress tests headless|
## Codice Qualità
|Command|Description|
|---------|-------------|
|`npm run lint:fix`|Fix linting issues|
|`npm run type-check`|Run TypeScript type checking|
|`npm run analyze`|Analyze bundle size|
|`npm run audit`|Run security audit|
## Integrazione dei pagamenti
|Command|Description|
|---------|-------------|
|`npm run stripe:setup`|Setup Stripe integration|
|`npm run stripe:webhooks`|Setup Stripe webhooks|
|`npm run stripe:test`|Test payment flow|
|`npm run payments:migrate`|Migrate payment tables|
## Configurazione e-mail
|Command|Description|
|---------|-------------|
|`npm run email:setup`|Setup email service|
|`npm run email:test`|Test email sending|
|`npm run email:templates`|Generate email templates|
## Sviluppo API
|Command|Description|
|---------|-------------|
|`npm run api:dev`|Start API development server|
|`npm run api:build`|Build API for production|
|`npm run api:test`|Test API endpoints|
|`npm run api:docs`|Generate API documentation|
## Monitoraggio e analisi
|Command|Description|
|---------|-------------|
|`npm run analytics:setup`|Setup analytics tracking|
|`npm run monitoring:setup`|Setup error monitoring|
|`npm run logs:view`|View application logs|
## Backup e ripristino
|Command|Description|
|---------|-------------|
|`npm run backup:create`|Create project backup|
|`npm run backup:restore`|Restore from backup|
|`npm run export:data`|Export application data|
|`npm run import:data`|Import application data|
## Ottimizzazione delle prestazioni
|Command|Description|
|---------|-------------|
|`npm run optimize:images`|Optimize image assets|
|`npm run optimize:bundle`|Optimize JavaScript bundle|
|`npm run lighthouse`|Run Lighthouse audit|
|`npm run perf:analyze`|Analyze performance metrics|
## Comandi di sicurezza
|Command|Description|
|---------|-------------|
|`npm run security:audit`|Run security audit|
|`npm run security:update`|Update security dependencies|
|`npm run security:scan`|Scan for vulnerabilities|
## Internazionalizzazione
|Command|Description|
|---------|-------------|
|`npm run i18n:extract`|Extract translation strings|
|`npm run i18n:build`|Build translation files|
|`npm run i18n:validate`|Validate translations|
## Operazioni Docker
|Command|Description|
|---------|-------------|
|`docker build -t divjoy-app .`|Build Docker image|
|`docker run -p 3000:3000 divjoy-app`|Run Docker container|
|`docker-compose up -d`|Start services with Docker Compose|
|`docker-compose down`|Stop Docker services|
## Flusso di lavoro Git
|Command|Description|
|---------|-------------|
|`git add .`|Stage all changes|
|`git commit -m "feat: add feature"`|Commit with conventional format|
|`git push origin main`|Push to main branch|
|`npm run release`|Create release version|
## File di configurazione
|File|Description|
|---------|-------------|
|`divjoy.config.js`|Divjoy configuration|
|`next.config.js`|Next.js configuration|
|`tailwind.config.js`|Tailwind CSS configuration|
|`prisma/schema.prisma`|Database schema|
|`.env.local`|Local environment variables|
|`package.json`|Project dependencies|
## Risoluzione dei problemi
|Command|Description|
|---------|-------------|
|`npm run doctor`|Run diagnostic checks|
|`npm run clean`|Clean build artifacts|
|`npm run reset`|Reset project to clean state|
|`npm run debug`|Start in debug mode|
## Caratteristiche avanzate
|Command|Description|
|---------|-------------|
|`npm run generate:sitemap`|Generate sitemap|
|`npm run generate:robots`|Generate robots.txt|
|`npm run seo:audit`|Run SEO audit|
|`npm run pwa:build`|Build Progressive Web App|
## Collaborazione team
|Command|Description|
|---------|-------------|
|`npm run team:setup`|Setup team environment|
|`npm run team:sync`|Sync team configurations|
|`npm run docs:generate`|Generate project documentation|
|`npm run docs:serve`|Serve documentation locally|