Our great sponsors
-
node-typescript-architecture
Hexagonal architecture / ports-and-adapters for Node.js using simple functional programming
-
domain-driven-hexagon
Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
fullstack-starter-template
Template for full stack applications based on TypeScript, React, Vite, ChakraUI, tRPC, Fastify, Prisma, zod, etc.
It's opinionated, and it's self promotion, but this is what I've used for every project of mine since 2020: https://github.com/jbreckmckye/node-typescript-architecture
Can't use any frameworks or libraries? Seems like a terrible idea tbh. I can suggest this repo https://github.com/Sairyss/domain-driven-hexagon - read "modules" and "folder and file structure" sections for some suggestions on how to structure files using patterns like Modular Architecture, Vertical Slicing, etc. Make sure to read the attached links and check code examples.
For example, in this repo, DTOs are just a zod schema for inputs, and interfaces/types for output: https://github.com/Sairyss/fullstack-starter-template
Related posts
- i just made an equation solver using constraint propogation in style of sicp
- Anyone using CQRS in production? Does it really have any benefits?
- Resources for learning about backend code architecture
- New to node. What's a good place to go to for best practices on MVC API development?
- Examples for hexagonal architecture/domain driven design for a web API