A simple RESTful API built with Node.js, Express.js, and PostgreSQL to demonstrate backend development fundamentals.
- Create a student
- Retrieve all students
- Update student information
- Delete a student
- PostgreSQL database integration
- Environment variables using
.env - Tested using Postman
- Node.js
- Express.js
- PostgreSQL
- pg
- dotenv
- Body-Parser
| Method | Endpoint | Description |
|---|---|---|
| POST | /create |
Create a new student |
| GET | / |
Retrieve all students |
| POST | /edit |
Update a student's age |
| POST | /delete |
Delete a student |
git clone https://github.com/CharafMC-1/Students_Management_API.git
cd Students_Management_API
npm installCreate a .env file:
DB_USER=your_username
DB_HOST=localhost
DB_DATABASE=your_database
DB_PASSWORD=your_password
DB_PORT=postegresPortRun the server:
nodemon index.jsThe server will start on:
http://localhost:3000
All endpoints were tested using Postman.
Mohammad C.Charaf
Computer & Communication Engineer