This is a CRUD application for student's info
The Postgresql database and Sonarqube are contained within the docker-compose.yml
file
- Docker
- NodeJs
npm install
docker-compose up -d
cd src && npx prisma generate && npx prisma migrate dev --name init
npm run test
npm start
-
GET
: Get all studentshttp://localhost:4000/api/students
[{"cedula":"1001636548","name":"Juan Camilo","email":"[email protected]","phone":"3203232323","career":"Ing sistemas"},{"cedula":"1001639741","name":"Juan Pablo","email":"[email protected]","phone":"323256245","career":"Ing química"}]
-
POST
: Create a new studenthttp://localhost:4000/api/students
{ "cedula": "1001519284", "name": "Pablo Lopez Rosales", "email": "[email protected]", "phone": "42423254232", "career": "Ing industrial" }
-
PUT
: Update a specific studenthttp://localhost:4000/api/students
Updating name and email
{ "cedula": "1001519284", "name": "Pablo Lopez Yepes Bedoya", "email": "[email protected]", "phone": "42423254232", "career": "Ing industrial" }
-
DELETE
: Delete a specific studenthttp://localhost:4000/api/students
{ "cedula": "1001519284" }