Comprehensive Divjoy commands and workflows for React codebase generation and development.
Project Creation
| 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 <divjoy-repo> my-app | Clone generated repository |
Development Commands
| 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 |
Database Operations
| 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 |
Authentication Setup
| 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 |
Deployment Commands
| 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 |
Environment Configuration
| Command | Description |
|---|
cp .env.example .env.local | Copy environment template |
npm run env:setup | Setup environment variables |
npm run env:validate | Validate environment config |
UI Component Generation
| 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 and 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 |
Testing Commands
| 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 |
Code Quality
| 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 |
Payment Integration
| 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 |
Email Configuration
| Command | Description |
|---|
npm run email:setup | Setup email service |
npm run email:test | Test email sending |
npm run email:templates | Generate email templates |
API Development
| 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 |
Monitoring and Analytics
| Command | Description |
|---|
npm run analytics:setup | Setup analytics tracking |
npm run monitoring:setup | Setup error monitoring |
npm run logs:view | View application logs |
Backup and Restore
| 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 |
| 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 |
Security Commands
| Command | Description |
|---|
npm run security:audit | Run security audit |
npm run security:update | Update security dependencies |
npm run security:scan | Scan for vulnerabilities |
Internationalization
| Command | Description |
|---|
npm run i18n:extract | Extract translation strings |
npm run i18n:build | Build translation files |
npm run i18n:validate | Validate translations |
Docker Operations
| 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 |
Git Workflow
| 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 |
Configuration Files
| 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 |
Troubleshooting
| 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 |
Advanced Features
| 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 |
Team Collaboration
| 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 |