A comprehensive form builder application that allows users to create custom forms with drag-and-drop functionality, share them via links, and manage responses.
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── forms.ts # Form CRUD operations
│ │ ├── responses.ts # Response handling
│ │ └── static.ts # Static file serving
│ └── index.ts # Main Hono server
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main application component
│ │ ├── FormBuilder.tsx # Drag-and-drop form builder
│ │ ├── FormRenderer.tsx # Form display and submission
│ │ └── Dashboard.tsx # Response dashboard
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared TypeScript types
GET / - Form builder interfacePOST /api/forms - Create a new formGET /api/forms/:id - Get form detailsGET /form/:id - Public form viewPOST /api/forms/:id/submit - Submit form responseGET /api/forms/:id/responses - Get form responsesGET /api/forms/:id/export - Export responses to CSV