Remix Hexagonal Architecture

screenshot of Remix Hexagonal Architecture
express
nestjs
react
remix
tailwind
prisma

Using Remix SSR as an opportunity to explore hexagonal architecture for Web Apps

Overview

The Todo List Manager project showcases a hexagonal architecture approach for front-end projects. It is built using Remix and Nest applications and leverages modern tooling to blur the line between front-end and client-side development. The project follows certain principles, such as performing most of the work on the server and using traditional web features on the client-side.

Features

  • Hexagonal architecture approach for front-end projects
  • Integration of Remix and Nest applications
  • Blurring of the line between front-end and client-side development
  • Leveraging server-side logic for improved security and ease of use
  • Use of traditional web features on the client-side
  • Separation of concerns between data preparation on the server and client-side responsibility
  • Organized project structure for React components and Remix implementation
  • Implementation of domain modeling, persistence, and querying layers
  • Use of simple JSON objects for client-server communication

Summary

The Todo List Manager project demonstrates the use of a hexagonal architecture approach in front-end development. By integrating Remix and Nest applications and taking advantage of modern tooling, the project blurs the line between front-end and client-side development. It follows certain principles that prioritize server-side logic and use traditional web features on the client-side. The project also provides a structured organization for components, domain modeling, persistence, and querying. However, it has limitations in terms of using simple JSON objects for client-server communication and restrictions on using complex objects like Date in responses.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

remix
Remix

Remix is a modern JavaScript framework that focuses on building fast and performant web applications. It emphasizes a combination of server-rendered content and client-side interactivity, offering a robust architecture for creating scalable and maintainable projects.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.