Skip to content

Dev's Guide: Frontend basic concepts

Ashar Fuadi edited this page May 29, 2023 · 9 revisions

This section explains the basic knowledge required for understanding Judgels codebase on the frontend side.

Tech stack

Authentication

  • Access token of the currently logged-in user is stored in local storage using redux-persist.
  • When hitting backend endpoints, the token is passed as an Authorization header in the HTTP request.

Application layers

  • API modules: JavaScript representation of backend endpoints. Example: user.js
  • Actions: Redux thunks that handle backend API calls. Example: userActions.js