This project is for educational and internship purposes.
This is a mock REST API built using JSON Server to support the frontend of the Medical Center Website project. It simulates a simple database for storing appointment data.
➡️ https://json-server-api-production-9295.up.railway.app/appointments
- Node.js
- JSON Server
- Hosted on Railway
├── db.json # Main data storage
├── server.js # JSON Server configuration
├── README.md # This file
├── package.json # Project setup
GET /appointments– Get all appointmentsPOST /appointments– Add a new appointmentPUT /appointments/:id– Edit an appointmentDELETE /appointments/:id– Delete an appointment
Note: The frontend uses a basic email prompt (modal) to simulate protection before allowing edit/delete.
git clone https://github.com/FatmaMoataz/json-server-api.git
cd json-server-api
npm install
npm startYou can re-upload seed data manually or use a script if needed.