Skip to content

feat: integrate fCC API for student completion data#585

Draft
raisedadead wants to merge 1 commit intofreeCodeCamp:mainfrom
raisedadead:feat/freecodecamp-API-integration
Draft

feat: integrate fCC API for student completion data#585
raisedadead wants to merge 1 commit intofreeCodeCamp:mainfrom
raisedadead:feat/freecodecamp-API-integration

Conversation

@raisedadead
Copy link
Member

Connect the classroom app to freeCodeCamp's service-to-service API
endpoints for fetching real student completion data instead of mock
json-server data.

  • Add util/fcc-api.js (Bearer token auth, auto-batching at 50 IDs)
  • Add fetchClassroomStudentData() to fetchStudentData.js
  • Resolve fccProperUserId on student join (non-blocking)
  • Dashboard pages conditionally use fCC API when FCC_API_URL is set
  • Add FCC_API_URL and TPA_API_BEARER_TOKEN to .env.sample

  Connect the classroom app to freeCodeCamp's service-to-service API
  endpoints for fetching real student completion data instead of mock
  json-server data.

  - Add util/fcc-api.js (Bearer token auth, auto-batching at 50 IDs)
  - Add fetchClassroomStudentData() to fetchStudentData.js
  - Resolve fccProperUserId on student join (non-blocking)
  - Dashboard pages conditionally use fCC API when FCC_API_URL is set
  - Add FCC_API_URL and TPA_API_BEARER_TOKEN to .env.sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant