All Projects → satishbabariya → nodejs-boilerplate

satishbabariya / nodejs-boilerplate

Licence: MIT license
Clean Architecture for node.js projects (Typescript + Express + TypeORM + Typedi)

Programming Languages

typescript
32286 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to nodejs-boilerplate

siringa
Minimalist dependency injection library for Python that embraces type annotations syntax
Stars: ✭ 51 (-74.37%)
Mutual labels:  dependency-injection, inversion-of-control, injection-container, dependency-injection-container
vue-ioc
IoC and DI for Vue powered by InversifyJS and inspired by Angular Module syntactic sugar.
Stars: ✭ 39 (-80.4%)
Mutual labels:  dependency-injection, inversion-of-control, inversifyjs
Typedi
Simple yet powerful dependency injection tool for JavaScript and TypeScript.
Stars: ✭ 2,832 (+1323.12%)
Mutual labels:  dependency-injection, inversion-of-control, typedi
telephone-ts
Telephone-ts: The "Event Emitter-less" TypeScript Event Architecture.
Stars: ✭ 22 (-88.94%)
Mutual labels:  dependency-injection, inversion-of-control, inversifyjs
stashbox
A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
Stars: ✭ 120 (-39.7%)
Mutual labels:  dependency-injection, inversion-of-control, dependency-injection-container
ThunderboltIoc
One of the very first IoC frameworks for .Net that has no reflection. An IoC that casts its services before thunder casts its bolts.
Stars: ✭ 40 (-79.9%)
Mutual labels:  dependency-injection, inversion-of-control
AnnotationInject
Compile-time Swift dependency injection annotations
Stars: ✭ 40 (-79.9%)
Mutual labels:  dependency-injection, injection-container
dargo
Dependency Injection for GO
Stars: ✭ 26 (-86.93%)
Mutual labels:  dependency-injection, inversion-of-control
avaje-inject
Dependency injection via APT (source code generation) ala "Server side Dagger DI"
Stars: ✭ 114 (-42.71%)
Mutual labels:  dependency-injection, inversion-of-control
iocgo
A lightweight Inversion of Control (IoC) (Dependency Injection) container for Golang
Stars: ✭ 36 (-81.91%)
Mutual labels:  dependency-injection, inversion-of-control
jimple
Just a dependency injection container to NodeJS and to the browser using new ES6 features
Stars: ✭ 72 (-63.82%)
Mutual labels:  dependency-injection, inversion-of-control
ufw
A minimalist framework for rapid server side applications prototyping in C++ with dependency injection support.
Stars: ✭ 19 (-90.45%)
Mutual labels:  dependency-injection, inversion-of-control
vesselize
⛵ A JavaScript IoC container that works seamlessly with Vue.js and React.
Stars: ✭ 22 (-88.94%)
Mutual labels:  dependency-injection, inversion-of-control
Components.js
🧩 A semantic dependency injection framework
Stars: ✭ 34 (-82.91%)
Mutual labels:  dependency-injection, inversion-of-control
awilix-express
Awilix helpers/middleware for Express
Stars: ✭ 100 (-49.75%)
Mutual labels:  dependency-injection, inversion-of-control
resty
A Node.js framework
Stars: ✭ 20 (-89.95%)
Mutual labels:  dependency-injection, typedi
di
Simple and yet powerful Dependency Injection for Go
Stars: ✭ 188 (-5.53%)
Mutual labels:  dependency-injection, inversion-of-control
noicejs
extremely thin async dependency injection
Stars: ✭ 16 (-91.96%)
Mutual labels:  dependency-injection, dependency-injection-container
inversify-koa-utils
inversify-koa-utils is a module based on inversify-express-utils. This module has utilities for koa 2 applications development using decorators and IoC Dependency Injection (with inversify)
Stars: ✭ 27 (-86.43%)
Mutual labels:  dependency-injection, inversion-of-control
potto
A minimum cross-platform implementation of COM (Component Object Model), DI/IOC framework
Stars: ✭ 13 (-93.47%)
Mutual labels:  inversion-of-control, dependency-injection-container

try! resty.js, my newest node.js + express based framework. with controllers and middlewares built in.

nodejs-boilerplate

Clean Architecture for node.js projects

Folder Structure

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

Getting Started

Step 1: Set up the Development Environment

You need to set up your development environment before you can do anything.

Install Node.js and NPM

Install

  • Install all dependencies with yarn install

Running in dev mode

  • Run yarn start
  • The server address will be displayed to you as http://0.0.0.0:3000

Building the project and run it

  • Run yarn build to generated all JavaScript files from the TypeScript sources.
  • the builded app located in dist.

Inspired by Bulletproof Node.js architecture with modificatins

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].