Clean Architecture for node.js projects (Typescript + Express + TypeORM + Typedi)
try! resty.js, my newest node.js + express based framework. with controllers and middlewares built in.
Clean Architecture for node.js projects
src
│ main.ts # Application entry point
└───api # Express route controllers for all the endpoints of the app
└───config # Environment variables and configurations
└───loaders # Split the startup process into modules
└───models # TypeORM Entities
└───services # All the business logic is here
└───types # Type declaration files (d.ts) for Typescript
You need to set up your development environment before you can do anything.
Install Node.js and NPM
brew install node
choco install nodejs
yarn install
yarn start
http://0.0.0.0:3000
yarn build
to generated all JavaScript files from the TypeScript sources.dist
.Inspired by Bulletproof Node.js architecture with modificatins