Front end
Every user interface is a single-page application written in TypeScript. Three generations coexist:
- older application modules are written with AngularJS 1.8;
- recent or migrated modules are written with React;
- the administration and the catalog are written with Angular 18.
AngularJS modules are being migrated to React one screen at a time.
Overview
| Scope | Location | Framework | Component library | Build |
|---|---|---|---|---|
| Administration, catalog | frontend/apps/admin, frontend/apps/catalog | Angular 18.2 | Angular Material 18 | Nx and Webpack (Module Federation) |
| Activity feed | frontend/apps/timeline | React 19 | Ant Design 5 | Nx and Vite 7 |
| Dashboard | frontend/apps/dashboard | Next.js 16, React 19 | MUI 6, Ant Design 6 | Nx and Next.js, shipped as a container image |
| Mobile app | frontend/apps/mobile | React Native 0.85, React 19 | React Navigation 7 | Metro |
| React modules | open-ent-mods/modules/<module>/frontend | React 18.3 | @open-ent/react (Bootstrap 5) | Vite 4 or 5 |
| AngularJS modules | open-ent-mods/modules/<module> | AngularJS 1.8.3 | entcore | Gulp and Webpack 3 |
The frontend/ workspace
The open-ent-frontend repository is included as a Git submodule under frontend/. It is an
Nx 22 workspace managed with Yarn 4, in TypeScript 5.5.
Applications
| Application | Main technologies |
|---|---|
admin, catalog | Angular 18.2, Angular Material, NgRx 18, RxJS 7.8, ngx-translate |
timeline | React 19, Ant Design 5, Refine 5, TanStack Query 5, Zustand, React Router 7, i18next, Emotion, Tailwind CSS 3 |
dashboard | Next.js 16, React 19, MUI 6, Ant Design 6, Refine 5, NextAuth, Prisma 6, GraphQL (Apollo), ECharts, Leaflet |
mobile | React Native 0.85, React Navigation 7, Firebase Messaging, WebView |
React components are styled with CSS-in-JS (Emotion). See ADR 011.
Shared libraries
The libraries under frontend/libs are published to the npm registry under the @openent
scope.
| Library | Role |
|---|---|
ts-client, ts-admin-client, ts-admin-openapi-client | TypeScript clients of the platform API; the administration client is generated from OpenAPI |
react-ui, react-antd, react-admin-antd | React components, including the Ant Design variants |
react-mui | React components for MUI 6 |
react-editor, tiptap | Rich text editor (Tiptap 2.3) and its extensions |
react-icons | Icons |
bootstrap, assets | Bootstrap 5.3 theme and the resources of the openent theme |
image-resizer, structure, user, utils | Utilities |
Tooling
| Use | Tool |
|---|---|
| Unit tests | Jest 30 (Angular), Vitest (React) |
| End-to-end tests | Playwright |
| Component catalog | Storybook 10 |
| Code quality | ESLint 9, Prettier 3, Husky |
Application modules
React modules
Common base: React 18.3, TypeScript 5, Vite, TanStack Query 5, React Router 6, i18next, Zustand,
tests with Vitest. Components, the API client and the theme come from @open-ent/react,
@open-ent/client and @open-ent/bootstrap.
A few modules use another component library:
- MUI:
appointments,magneto,ressource-aggregator,school-planner(the last one on React 19 and Vite 8); - Ant Design:
rack.
AngularJS modules
They rely on AngularJS 1.8.3 and the entcore 4.8 library, in TypeScript 2.4 to 4.8, built with
Gulp and Webpack 3.
Status by module
| Technology | Modules |
|---|---|
| React | actualites, appointments, blog, chat-nats, collaborative-wall, communities, explorer, magneto, mindmap, rack, ressource-aggregator, schoolbook, school-planner, search-engine, video, vote, wiki, workflowhub |
| AngularJS and React, migration in progress | cahier-de-textes, calendar, community, competences, edt, forum, pages, rbs, statistics, support, timeline-generator |
| AngularJS | collaborative-editor, exercizer, poll, presences, vie-scolaire |
Where the interface is served from
Each module carries its own user interface, deployed under
src/main/resources/META-INF/resources so that the module serves it to the browser.
The dashboard is the exception: it is a Next.js application with server-side rendering, shipped as a container image.