Skip to content

Derry255/student-crud-api

Repository files navigation

Student CRUD API

Setup Instructions

  1. Clone the repo and install dependencies:
git clone <repo-url>
cd student-crud-api
npm install
  1. Create a .env file with:
MONGO_URI=your-mongodb-uri
PORT=5000
  1. Run the app:
npm run dev

API Endpoints

  • POST /api/students
  • GET /api/students
  • GET /api/students/count
  • PUT /api/students/:id
  • DELETE /api/students/:id

Postman Collection

Import the postman_collection.json in Postman to test endpoints.

Notes

  • Email must be unique
  • Returns appropriate HTTP status codes for validation and errors

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors