Skip to main content

Introduction

Author: Nguyen Duc Trung

The OpenEU Frontend is built using Next.js v15 and deployed on Netlify, leveraging a modern React architecture with strict linting, CI hooks, and an ecosystem of powerful libraries for mapping, visualization, UI, and developer experience.


๐Ÿ›  Frameworks & Librariesโ€‹

  • Next.js 15 โ€“ React framework with built-in SSR, routing, and API routes.
  • NextUI v2 โ€“ Lightweight, accessible component library for consistent UI.
  • Tailwind CSS โ€“ Utility-first CSS framework for fast and flexible styling.
  • Tailwind Variants โ€“ Adds dynamic variant control for Tailwind.
  • TypeScript โ€“ Static typing for better DX and maintainability.
  • Framer Motion โ€“ Declarative animation library for React.
  • next-themes โ€“ Light/dark theme toggling with persistence.

๐Ÿ“ Mapping & Geospatialโ€‹

  • Leaflet โ€“ Lightweight interactive map engine.
  • react-leaflet โ€“ React bindings for Leaflet.
  • @turf/turf โ€“ Advanced geospatial analysis.

๐Ÿ“Š Visualizationโ€‹


๐Ÿ“ฆ State & Data Managementโ€‹


๐Ÿงฉ Utilities & Developer Experienceโ€‹


๐Ÿงช Linting & Code Qualityโ€‹

  • TypeScript
  • ESLint โ€“ With Airbnb & Next.js configs.
  • Prettier โ€“ For consistent formatting.
  • Husky โ€“ Git hooks to enforce standards.
  • Lint-staged โ€“ Run linters on staged files before commit.
  • Commitlint โ€“ Ensure conventional commit messages.

๐ŸŒ APIs & Typesโ€‹