🧩 Level 1: Beginner Task 1 – HTML Structure and Basic Server Interaction
Objective: Learn server-side rendering and form submissions. Steps:
Create an HTML structure with forms for user input.
Set up a Node.js server using Express.
Create endpoints to handle form submissions.
Simple EJS (No Layout Engine)
1️⃣ Install dependencies
npm init -y
npm install express ejs
npm install --save-dev nodemon
2️⃣ package.json -
3️⃣ app.js
4️⃣ views/index.ejs
5️⃣ views/result.ejs
6️⃣ public/styles.css
7️⃣ Run the app
node app.js OR
nodemon app.js
Then open http://localhost:3000
⚙️ Level 2: Intermediate Task 3 – Advanced CSS Styling and Responsive Design Objective: Improve UI with advanced CSS and responsive layout. Steps:
Create a complex, multi-section layout.
Use CSS properties like transitions and animations.
1️⃣ app.js – Add server-side validation + temporary storage
2️⃣ views/index.ejs – Inline styles + client-side validation
3️⃣ views/result.ejs – Show submitted data and stored records

⚙️ Level 2: Intermediate Task 3 – Advanced CSS Styling and Responsive Design
Objective: Improve UI with advanced CSS and responsive layout. Steps:
Create a complex, multi-section layout.
Use CSS properties like transitions and animations.
npm install bootstrap
3️⃣ views/index.ejs — Responsive form layout with Bootstrap & animations
4️⃣ views/result.ejs — Stylish results page
5️⃣ public/styles.css — Animations, transitions, and responsiveness

Task 4 – Complex Form Validation and Dynamic DOM Manipulation
Objective: Extend validation and manipulate the DOM dynamically. Steps:
Add complex validation (e.g., password strength).
Update the DOM dynamically based on user input.
🧱 1️⃣ Add New Form Fields (views/index.ejs) 🧠 2️⃣ Server-Side Validation (app.js)
⚙️ 2. Updated app.js with API Routes
🖥️ 3. Updated index.ejs
Here’s the full content for your script.js file (includes validation, routing, and API fetching):

Task 6 – Database Integration and User Authentication
Objective: Secure data storage and authentication. Steps:
Integrate a database (e.g., MongoDB or MySQL).
Implement user authentication on the server.
Secure your API endpoints with authorization checks.
npm install mongoose bcrypt jsonwebtoken cookie-parser
🗄️ Step 2: Connect MongoDB
👤 Step 3: Authentication Routes (Register + Login)

Install database & auth libs npm install mongoose bcrypt jsonwebtoken cookie-parser dotenv