serves learning materials for each course.
REST API
- typeScript: a superset of JavaScript that adds static typing and advanced language features.
- express: a we application framework for Node.js.
- ts-node: a typescript execution environment for Node.js.
-
Sign up a user
- Endpoint:
POST /v1/signup
- Payload:
{ "name": "xxx", "email": "xxx", "password": "xxx", "passwordConfirm": "xxx" }
- Endpoint:
-
Sign in a user
- Endpoint:
POST /v1/signin
- Payload:
{ "email": "xxx", "password": "xxx" }
- Endpoint:
- Get all courses
- Endpoint:
GET /v1/courses
- Endpoint:
- Get a course details
- Endpoint:
GET /v1/courses/:id
- Endpoint:
- Get a chapter details
- Endpoint:
GET /v1/courses/:id/chapters/:id
- Endpoint:
- Get a unit details
- Endpoint:
GET /v1/courses/:id/chapters/:id/units/:id
- Endpoint:
- Search content for a specific course
- Endpoint:
GET /v1/courses/:id/search
- Params:
keyword=xxx
- Endpoint:
- Get a user's learning progress for a specific course
- Endpoint:
GET /v1/courses/:id/progress
- Endpoint:
- Mark a unit as complete
- Endpoint:
PATCH /v1/courses/:id/chapters/:id/units/:id
- Payload:
{ "complete": true, "userId": 1 }
- Endpoint: