{"id":16419404,"url":"https://github.com/devmahmud/next-dnd-formbuilder","last_synced_at":"2025-03-23T06:31:44.550Z","repository":{"id":204610323,"uuid":"708335385","full_name":"devmahmud/next-dnd-formbuilder","owner":"devmahmud","description":"Next JS drag and drop formbuilder","archived":false,"fork":false,"pushed_at":"2024-11-29T21:31:46.000Z","size":1423,"stargazers_count":28,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T18:44:48.238Z","etag":null,"topics":["approuter","dnd-kit","drag-and-drop","nextjs","server-actions","shadcn-ui","tailwindcss"],"latest_commit_sha":null,"homepage":"https://next-dnd-formbuilder.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devmahmud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-22T08:51:50.000Z","updated_at":"2025-03-04T08:30:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ab8ef3c-ef17-4fc3-8274-137299bacae1","html_url":"https://github.com/devmahmud/next-dnd-formbuilder","commit_stats":null,"previous_names":["devmahmud/next-dnd-formbuilder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmahmud%2Fnext-dnd-formbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmahmud%2Fnext-dnd-formbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmahmud%2Fnext-dnd-formbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devmahmud%2Fnext-dnd-formbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devmahmud","download_url":"https://codeload.github.com/devmahmud/next-dnd-formbuilder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066497,"owners_count":20555402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["approuter","dnd-kit","drag-and-drop","nextjs","server-actions","shadcn-ui","tailwindcss"],"created_at":"2024-10-11T07:24:15.368Z","updated_at":"2025-03-23T06:31:44.112Z","avatar_url":"https://github.com/devmahmud.png","language":"TypeScript","readme":"# Next DnD FormBuilder\n\nNext DnD FormBuilder is a drag-and-drop form builder built with Next.js, Prisma, and TypeScript. This project allows users to create dynamic forms by simply dragging and dropping form elements onto a canvas. Below is an overview of the project structure and setup instructions.\n\n## Prerequisites\n\nBefore running the project, ensure you have the following installed:\n\n- Node.js (v14 or higher)\n- npm or yarn\n- PostgreSQL\n\n## Setup\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/devmahmud/next-dnd-formbuilder.git\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   # or\n   yarn\n   ```\n\n3. For authentication, This project uses [Clerk](https://clerk.com/). Create a free clerk account and from `Developers/API Keys` you will get Publishable key and secret key for the Next.js project\n\n4. Set up environment variables:\n\n   Create a `.env` file in the root directory and provide the following variables:\n\n   ```plaintext\n   NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=\n   CLERK_SECRET_KEY=\n\n   NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in\n   NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up\n   NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/\n   NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/\n\n   POSTGRES_PRISMA_URL=postgresql://username:password@hostname:port/database_name\n   POSTGRES_URL_NON_POOLING=postgresql://username:password@hostname:port/database_name\n\n   ```\n\n   Ensure to replace the placeholders with your actual values.\n\n5. Initialize Prisma:\n\n   ```bash\n   npx prisma generate\n   # or\n   yarn prisma generate\n   ```\n\n6. Run the development server:\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n\n## Scripts\n\n- `dev`: Start the development server.\n- `build`: Build the Next.js application for production.\n- `start`: Start the production server.\n- `lint`: Lint the code using Next.js linting configurations.\n- `postinstall`: Generate Prisma client.\n\n## Project Structure\n\n- `app/`: Contains Next.js pages.\n- `public/`: Contains static assets.\n- `components/`: Contains All the react components for the project.\n- `prisma/`: Contains Prisma schema and migrations.\n- `lib`: Contains helper functions.\n- `schema`: Contains zod form schema.\n\n## Usage\n\n- Visit the homepage to access the drag-and-drop form builder interface.\n- Drag form elements from the toolbox onto the canvas to create your form.\n- Customize form element properties as needed.\n- Save the form configuration and integrate it with your application.\n\nFeel free to modify and extend the project according to your requirements!\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmahmud%2Fnext-dnd-formbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmahmud%2Fnext-dnd-formbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmahmud%2Fnext-dnd-formbuilder/lists"}