This project is a REST API server implementation built on top Node.js
and Express.js
with Mongoose.js
for MongoDB
integration.
You need to have Docker installed.
docker-compose up -d
OR
./build.ps1
NOTE: Demo dataset will also be created through this process.
Get your data:
http GET http://localhost:3000/api/courses
http GET http://localhost:3000/api/courses/<course-id>
Create a new course:
curl -v -H "Content-Type: application/json" -X POST -d "{ \"name\": \"<course-name>\" }" http://localhost:3000/api/courses
Update course name:
curl -v -H "Content-Type: application/json" -X PUT -d "{ \"name\": \"<new-course-name>\" }" http://localhost:3000/api/courses/<course-id>
Delete data:
http DELETE http://localhost:3000/api/courses/<course-id>
Some of non-standard modules used:
Created and maintained by Mahmudul Hasan Sreejon (@mahmudul-hasan-sreejon).