Skip to main content

Project Structure

This document describes the main structure of the eN-LIS project, focusing on the src folder and its key subfolders.

Overview​

src/
assets/ # Images, icons, and static assets
authentication/ # Auth context, hooks, and components
components/ # Reusable UI components (charts, modals, notifications, etc.)
constants/ # App-wide constants and enums
containers/ # Main app containers and layout wrappers
data/ # Redux actions, reducers, and store setup
hooks/ # Custom React hooks
lngProvider/ # Internationalization (i18n) setup
main.jsx # App entry point
EnlisApp.jsx # Main app wrapper (providers, router, watermark, etc.)
pages/ # All route-level pages (FileManagement, Clinical, Reports, etc.)
styles/ # Tailwind, AntD, Less, and global styles
util/ # Utility functions, API clients, helpers

Key Folders​

  • assets/: Logos, images, SVGs, and static files used throughout the app.
  • authentication/: Handles authentication logic, context, and hooks.
  • components/: Shared UI components (charts, modals, notifications, etc.).
  • constants/: Application-wide constants and enums.
  • containers/: Main layout containers and wrappers for the app.
  • data/: Redux logic (actions, reducers, store setup).
  • hooks/: Custom React hooks for business logic and state.
  • lngProvider/: Internationalization (i18n) and language files.
  • pages/: All main app pages, organized by feature/module.
  • styles/: Tailwind, Ant Design, Less, and other global stylesheets.
  • util/: Utility functions, API clients, helpers, and config.

Pages Structure​

The pages/ folder contains all main app pages, grouped by feature:

pages/
FileManagement/
Clinical/
Reports/
...

Each feature folder contains its own components, views, and logic.


← Back to Getting Started