Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

106 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Showcase: React for business applications

Build Status

Given the typical technical and structural requirements of a business application what are the recommended technology choices and architectural nuggets?

Architecture / Tech

This is my recommended tech stack for a typical enterprise application. Underlying assumptions of most important requirements

  • Long service life (often more than 10 years) and thus good maintainability
  • Development with several teams and members changing over the years
  • Good structuring possibilities for large and complex applications
  • Fast development speed

http://blog.embarc.de/spicker/#9

Is architecture just clueless talking and useless Visios? (Well, it can be...)

Architecture is the sum of the important Processes, Structures, Patterns, Architectural Nuggets and Frameworks. Important can mean

  • hard to change, but somewhat risky,
  • affecting many teams/people or large parts of the software,
  • restricting what can be built reasonably,
  • having the potential to make the endeavor fail.

Architecture

Idea of Architectural Nuggets taken from: https://pkruchten.files.wordpress.com/2020/06/kruchten-2020-northrop-award.pdf

Also from Kruchten: The life of a software architect is a long and sometimes painful succession of suboptimal decisions taken partly in the dark.

Definition of architecture inspired by: https://martinfowler.com/architecture/

Most important Architectural decisions

Framework

State Management

Macro-Structure of modules and dependencies

Don't underestimate, can be crucial for win or lose. This actually is a failed project

  • uses CSS lib tailwind
  • factored out lib of common components also using tailwind into project of its own
  • now independent lib has dependency on tailwind
    • how to build this properly?
      • publish bundled version of CSS -> duplicates
      • leave it up to using project to include CSS -> how to properly purge unwanted styles (tailwind unpurged can be many 100k)
        • this is how we handle it here, but only is ok, because this is toy project
    • alternative is to get rid of CSS lib for component lib
      • how to do this?
      • do we break something?
      • would we even know? how to test?_

Modular Monolith

Micro Frontends

Micro-Structure within a module

Testing

Dedicated document

Typing

Less important technical recommendations

Data Fetching and Synchronization

Dependency Management

Linting

Routing

i18n, l10n

Build / Deployment

Component Libraries

CSS Framework

Create React App

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Creation

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages