Skip to content

Divjoy Commands

Comprehensive Divjoy commands and workflows for React codebase generation and development.

Project Creation

CommandDescription
npx create-divjoy-app my-appCreate new Divjoy project
npm create divjoy-app@latestCreate with latest template
yarn create divjoy-app my-appCreate with Yarn
git clone <divjoy-repo> my-appClone generated repository

Development Commands

CommandDescription
npm startStart development server
npm run devStart development mode
yarn devStart with Yarn
npm run buildBuild for production
npm run previewPreview production build
npm testRun test suite
npm run test:watchRun tests in watch mode
npm run lintRun ESLint
npm run formatFormat code with Prettier

Database Operations

CommandDescription
npm run db:migrateRun database migrations
npm run db:seedSeed database with sample data
npm run db:resetReset database
npm run db:studioOpen database studio
npm run db:generateGenerate Prisma client
npm run db:pushPush schema to database

Authentication Setup

CommandDescription
npm run auth:setupSetup authentication
npm run auth:migrateMigrate auth tables
npm run auth:seedSeed auth data
npm run auth:testTest authentication flow

Deployment Commands

CommandDescription
npm run deployDeploy to production
npm run deploy:vercelDeploy to Vercel
npm run deploy:netlifyDeploy to Netlify
npm run deploy:awsDeploy to AWS
npm run build:dockerBuild Docker image
docker-compose upStart with Docker Compose

Environment Configuration

CommandDescription
cp .env.example .env.localCopy environment template
npm run env:setupSetup environment variables
npm run env:validateValidate environment config

UI Component Generation

CommandDescription
npm run generate:componentGenerate new component
npm run generate:pageGenerate new page
npm run generate:hookGenerate custom hook
npm run generate:apiGenerate API route

Styling and Theming

CommandDescription
npm run theme:buildBuild theme files
npm run theme:watchWatch theme changes
npm run css:buildBuild CSS files
npm run tailwind:buildBuild Tailwind CSS

Testing Commands

CommandDescription
npm run test:unitRun unit tests
npm run test:integrationRun integration tests
npm run test:e2eRun end-to-end tests
npm run test:coverageGenerate test coverage
npm run cypress:openOpen Cypress test runner
npm run cypress:runRun Cypress tests headless

Code Quality

CommandDescription
npm run lint:fixFix linting issues
npm run type-checkRun TypeScript type checking
npm run analyzeAnalyze bundle size
npm run auditRun security audit

Payment Integration

CommandDescription
npm run stripe:setupSetup Stripe integration
npm run stripe:webhooksSetup Stripe webhooks
npm run stripe:testTest payment flow
npm run payments:migrateMigrate payment tables

Email Configuration

CommandDescription
npm run email:setupSetup email service
npm run email:testTest email sending
npm run email:templatesGenerate email templates

API Development

CommandDescription
npm run api:devStart API development server
npm run api:buildBuild API for production
npm run api:testTest API endpoints
npm run api:docsGenerate API documentation

Monitoring and Analytics

CommandDescription
npm run analytics:setupSetup analytics tracking
npm run monitoring:setupSetup error monitoring
npm run logs:viewView application logs

Backup and Restore

CommandDescription
npm run backup:createCreate project backup
npm run backup:restoreRestore from backup
npm run export:dataExport application data
npm run import:dataImport application data

Performance Optimization

CommandDescription
npm run optimize:imagesOptimize image assets
npm run optimize:bundleOptimize JavaScript bundle
npm run lighthouseRun Lighthouse audit
npm run perf:analyzeAnalyze performance metrics

Security Commands

CommandDescription
npm run security:auditRun security audit
npm run security:updateUpdate security dependencies
npm run security:scanScan for vulnerabilities

Internationalization

CommandDescription
npm run i18n:extractExtract translation strings
npm run i18n:buildBuild translation files
npm run i18n:validateValidate translations

Docker Operations

CommandDescription
docker build -t divjoy-app .Build Docker image
docker run -p 3000:3000 divjoy-appRun Docker container
docker-compose up -dStart services with Docker Compose
docker-compose downStop Docker services

Git Workflow

CommandDescription
git add .Stage all changes
git commit -m "feat: add feature"Commit with conventional format
git push origin mainPush to main branch
npm run releaseCreate release version

Configuration Files

FileDescription
divjoy.config.jsDivjoy configuration
next.config.jsNext.js configuration
tailwind.config.jsTailwind CSS configuration
prisma/schema.prismaDatabase schema
.env.localLocal environment variables
package.jsonProject dependencies

Troubleshooting

CommandDescription
npm run doctorRun diagnostic checks
npm run cleanClean build artifacts
npm run resetReset project to clean state
npm run debugStart in debug mode

Advanced Features

CommandDescription
npm run generate:sitemapGenerate sitemap
npm run generate:robotsGenerate robots.txt
npm run seo:auditRun SEO audit
npm run pwa:buildBuild Progressive Web App

Team Collaboration

CommandDescription
npm run team:setupSetup team environment
npm run team:syncSync team configurations
npm run docs:generateGenerate project documentation
npm run docs:serveServe documentation locally