feat: finalize academy redesign and production readiness
Align admin, community, search, library, learning and course management with the mockup. Add saved courses, download history, public community feed, instructor directory, backend search, course views, admin content tools and community moderation. Harden API and Nginx for production.
This commit is contained in:
10
BACKEND.md
10
BACKEND.md
@@ -14,10 +14,16 @@ The API health endpoint is available at `http://localhost:3001/api/v1/health` an
|
||||
|
||||
## Current API
|
||||
|
||||
- `GET /api/v1/courses` returns published courses.
|
||||
- `GET /api/v1/courses` returns published courses and, for authenticated learners, their completion percentage and last activity.
|
||||
- `GET /api/v1/courses/:courseId` returns one published course.
|
||||
- `POST /api/v1/courses/:courseId/view` records a course view for the “most watched” shelves.
|
||||
- `GET /api/v1/courses/me/learning` returns the authenticated learner's started courses, ordered by their last activity, with completion percentage.
|
||||
- `GET /api/v1/courses/:courseId/progress` and `PUT /api/v1/lessons/:lessonId/progress` persist completion and watch position.
|
||||
- `GET /api/v1/community/comments` returns the public, paginated community feed.
|
||||
- `GET/PUT/DELETE /api/v1/saved-courses` keeps the authenticated learner's saved-course list.
|
||||
- `GET /api/v1/downloads` and `POST /api/v1/downloads/:assetId` keep the authenticated learner's download history.
|
||||
- `GET /api/v1/profiles/instructors` lists public instructor profiles.
|
||||
- `GET /api/v1/search?q=&area=` searches courses, paths and public instructors.
|
||||
- `GET /api/v1/admin/audit-log` exposes the last 50 administrative actions to superadmins.
|
||||
|
||||
## Accounts and instructor access
|
||||
@@ -34,7 +40,7 @@ To create the first local administrator, set `SUPERADMIN_EMAIL`, `SUPERADMIN_PAS
|
||||
|
||||
For local demos, `npm run db:seed-demo-content` imports the original frontend catalogue into PostgreSQL. It requires the bootstrap administrator to exist and skips courses already present.
|
||||
|
||||
Anonymous visitors can browse course and lesson information, but media and download links are removed from their response. A signed-in account is required to play lessons, download materials, track progress, or participate in discussion.
|
||||
Anonymous visitors can browse course, path, instructor and community information, but media and download links are removed from their response. A signed-in account is required to play lessons, download materials, track progress, or participate in discussion.
|
||||
|
||||
## Provider boundaries
|
||||
|
||||
|
||||
Reference in New Issue
Block a user