Check out the live demo of the form builder at: Live Demo
A full-stack Form Builder Application built using the MERN Stack (MongoDB, Express, React, Node.js) and Tailwind CSS. This application allows users to create and edit forms with three specific question types: Categorize, Cloze, and Comprehension. Users can preview or fill out the forms and store the responses in the backend.
-
Create forms with an intuitive UI.
-
Add various question types:
- Categorize: Questions requiring categorization of items.
- Cloze: Fill-in-the-blank questions.
- Comprehension: Questions based on a provided passage.
-
Upload images for each question (limited to 10 MB).
-
Add a header image for the form.
- Generate a shareable preview/fill link for each form.
- Fill in forms and save responses to the backend.
- Store form data, questions, and user responses in a MongoDB database.
- Use well-defined schemas for structured data storage.
##APP VIEW
- React.js: Manages the UI for creating and previewing forms.
- Tailwind CSS: Provides a responsive and modern design.
- Node.js: Server-side logic.
- Express.js: API routing and middleware.
- MongoDB: Stores form data and user responses.
- Node.js and npm installed.
- MongoDB instance running locally or in the cloud.
- Clone the repository:
git clone https://github.com/your-username/form-builder.git cd form-builder
- Install dependencies::
npm install cd server npm install
- Set up environment variables: Create a .env file in the root directory with the following::
MONGO_URI=<your-mongodb-connection-string> PORT=5000
- Set up environment variables: Create a .env file in the root directory with the following::
Start the backend: npm run server Start the frontend: cd server npm start