A lightweight RESTful API for managing college student records β built with pure Node.js (no frameworks).
Developer: Anoop A Β |Β Deadline: 19 March 2026
- π Full CRUD β Create, Read, Update, Delete student records
- β Validation β Required fields, valid email format, year range (1β4)
β οΈ Error Handling β 400 for bad requests, 404 for not found/invalid routes- πΎ JSON Persistence β Data stored in a local JSON file (no database needed)
- π Pagination β Browse large datasets page by page
- π Query Filtering β Filter students by fields
- π Timestamps β Auto
createdAt/updatedAton every record
# 1. Clone the repo
git clone <repo-url>
cd student-api
# 2. Run the server
node server.js
# 3. Open Postman and hit
http://localhost:3000| Method | Endpoint | Description |
|---|---|---|
POST |
/students |
Create a new student |
GET |
/students |
Get all students |
GET |
/students/:id |
Get a single student |
PUT |
/students/:id |
Update a student |
DELETE |
/students/:id |
Delete a student |
| Field | Rule |
|---|---|
| Name | Required |
| Required, valid format | |
| Year | Required, must be between 1 and 4 |
- Runtime: Node.js
- Module: Built-in
http(zero external dependencies) - Storage: JSON file persistence