Posts

Showing posts from April, 2026

10 sdc

 PROGRAM 10. Develop an express web application that can interact with REST API to perform1 4 CRUD operations on student data. (Use Postman). Server.js const express = require('express'); const app = express(); app.use(express.json()); let students = []; // CREATE app.post('/students', (req, res) => {     const student = {         id: students.length + 1,         name: req.body.name,         course: req.body.course     };     students.push(student);     res.send("Student Added Successfully"); }); // READ app.get('/students', (req, res) => {     res.json(students); }); // UPDATE app.put('/students/:id', (req, res) => {     const id = parseInt(req.params.id);     const student = students.find(s => s.id === id);     if(student){         student.name = req.body.name;         student.course = req....

Sdc

 OGRAM 2: Make the above web application responsive web  application using Bootstrap framework.  bootstrap.html  <html>  <head>  <meta charset="UTF-8">  <meta name="viewport" content="width=device-width, initial-scale=1.0">  <title>Bootstrap usage</title>  <link  href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.mi n.css" rel="stylesheet" integrity="sha384- sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJ LB" crossorigin="anonymous">  </head>  <body>  <main>  <h1 class="container mt-5">Login Here</h1>  <form class="mb-3" action="#">  <label class="form-label">EMAIL</label><input type="text" class="form- control" id="email" name="email">  <label class="form-label" >PASSWORD</label><input...