Skip to content

Latest commit

Β 

History

History
63 lines (44 loc) Β· 1.57 KB

File metadata and controls

63 lines (44 loc) Β· 1.57 KB

πŸŽ“ College Student Management API

A lightweight RESTful API for managing college student records β€” built with pure Node.js (no frameworks).

Developer: Anoop A Β |Β  Deadline: 19 March 2026


✨ Features

  • πŸ“‹ 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 / updatedAt on every record

πŸš€ Quick Start

# 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

πŸ“‘ API Endpoints

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

πŸ›‘οΈ Validation Rules

Field Rule
Name Required
Email Required, valid format
Year Required, must be between 1 and 4

🧱 Tech Stack

  • Runtime: Node.js
  • Module: Built-in http (zero external dependencies)
  • Storage: JSON file persistence