Mateusz Kwaśniewski
Mindventures

Node.js Application Architecture without magic 🇵🇱 🇬🇧 2-3 days

About

Node.js provides more freedom compared to traditional enterprise ecosystems. Although some individuals are attempting to transform Node.js into a framework-heavy enterprise platform, there is an alternative approach.

In this course we will learn how to build highly composable, type-safe and testable systems without a typical enterprise framework magic. If you have an aversion to magic or wish to unlearn years of practices such as using:

This course is for you. The alternative to heavy enterprise frameworks is not Wild Wild West or building a custom framework. The real alternative is to embrace the true nature of JS/TS, make full use of the good parts and never get prisoned in another heavy framework again.

What will I learn?

  1. Compose your building blocks with multiple composition roots and manual dependency injection
  2. Make full use of extremly composable functions instead of less composable classes
  3. Write type-safe DB access code that stays in sync with DB schemas and prevents you from mistakes
  4. Parse don’t validate your input and output data to be liberal in what you accept and strict in what you produce
  5. Organise your code around features, not technology layers
  6. Handle DB transactions without magic
  7. Program in a language, not in a framework
  8. Test with high ROI with smart testing strategies
  9. Make code testable and don’t let more than one invocation of new Date() sneak into your code
  10. Start your app in full in-memory mode by default
  11. Separate write model and read model
  12. Master transferrable skills that will outlive your enterprise framework du jour

Agenda

Engineering techniques and principles

Architectural building blocks and concepts

Testing strategies

Integration with a SQL database

Type-safety