-
Notifications
You must be signed in to change notification settings - Fork 24
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.
-
Preact (using
preact/compat
for compatibility with React) - Redux
- Yarn
- Palantir Blueprint
- Prettier
- 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.
-
API modules: JavaScript representation of backend endpoints. Example:
user.js
-
Actions: Redux thunks that handle backend API calls. Example:
userActions.js