Student Feedback
Student Feedback
AIM
To build a Student Feedback Management System using the MERN stack (MongoDB, Express, React, Node.js)
that allows students to submit course feedback and enables admins or faculty to view and filter the responses.
PROCEDURE
1. Setup Project
2. Backend Development
o Create Mongoose model for feedback with fields: student name, course, faculty, comments,
and rating
3. Frontend Development
4. Styling
5. Testing
app.use(cors());
app.use(express.json());
mongoose.connect('mongodb://localhost/feedbackDB');
student: String,
course: String,
faculty: String,
comments: String,
rating: Number,
});
await newFeedback.save();
res.send("Feedback submitted");
});
res.json(feedbacks);
});
Frontend (React):
function FeedbackForm() {
const [form, setForm] = useState({ student: '', course: '', faculty: '', comments: '', rating: '' });
const handleSubmit = e => {
e.preventDefault();
};
return (
<form onSubmit={handleSubmit}>
<input placeholder="Student Name" onChange={e => setForm({ ...form, student: e.target.value })} />
<input placeholder="Course" onChange={e => setForm({ ...form, course: e.target.value })} />
<input placeholder="Faculty" onChange={e => setForm({ ...form, faculty: e.target.value })} />
<input type="number" placeholder="Rating (1-5)" onChange={e => setForm({ ...form, rating: e.target.value
})} />
<button type="submit">Submit</button>
</form>
);
OUTPUT
• Students can enter their name, course, faculty name, comments, and a rating.
RESULT
The student feedback management system was successfully implemented using the MERN stack. It allows role-
based feedback submission and viewing with a responsive interface and persistent MongoDB storage.