A simple Node.js and PostgreSQL API for managing student records.
-
Clone the repository:
git clone https://github.com/capwell-murimi/NODE_REST_API.git cd NODE_REST_API -
Install dependencies:
npm install
-
Configure the database connection in
db.js:const pool = new Pool({ user: 'your_username', host: 'your_host', database: 'your_database', password: 'your_password', port: 5432 // Change if needed });
-
Start the server:
node server.ja
- GET
/api/v1/students- Retrieve students
- Node.js (Express.js)
- PostgreSQL (pg library)
This project is open-source. Feel free to modify and contribute!! 🚀