Skip to main content

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​

ScopeLocationFrameworkComponent libraryBuild
Administration, catalogfrontend/apps/admin, frontend/apps/catalogAngular 18.2Angular Material 18Nx and Webpack (Module Federation)
Activity feedfrontend/apps/timelineReact 19Ant Design 5Nx and Vite 7
Dashboardfrontend/apps/dashboardNext.js 16, React 19MUI 6, Ant Design 6Nx and Next.js, shipped as a container image
Mobile appfrontend/apps/mobileReact Native 0.85, React 19React Navigation 7Metro
React modulesopen-ent-mods/modules/<module>/frontendReact 18.3@open-ent/react (Bootstrap 5)Vite 4 or 5
AngularJS modulesopen-ent-mods/modules/<module>AngularJS 1.8.3entcoreGulp 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​

ApplicationMain technologies
admin, catalogAngular 18.2, Angular Material, NgRx 18, RxJS 7.8, ngx-translate
timelineReact 19, Ant Design 5, Refine 5, TanStack Query 5, Zustand, React Router 7, i18next, Emotion, Tailwind CSS 3
dashboardNext.js 16, React 19, MUI 6, Ant Design 6, Refine 5, NextAuth, Prisma 6, GraphQL (Apollo), ECharts, Leaflet
mobileReact 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.

LibraryRole
ts-client, ts-admin-client, ts-admin-openapi-clientTypeScript clients of the platform API; the administration client is generated from OpenAPI
react-ui, react-antd, react-admin-antdReact components, including the Ant Design variants
react-muiReact components for MUI 6
react-editor, tiptapRich text editor (Tiptap 2.3) and its extensions
react-iconsIcons
bootstrap, assetsBootstrap 5.3 theme and the resources of the openent theme
image-resizer, structure, user, utilsUtilities

Tooling​

UseTool
Unit testsJest 30 (Angular), Vitest (React)
End-to-end testsPlaywright
Component catalogStorybook 10
Code qualityESLint 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​

TechnologyModules
Reactactualites, 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 progresscahier-de-textes, calendar, community, competences, edt, forum, pages, rbs, statistics, support, timeline-generator
AngularJScollaborative-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.