graphql_clean-architecture_boilerplate
awilix
graphql_clean-architecture_boilerplate | awilix | |
---|---|---|
1 | 5 | |
30 | 3,359 | |
- | - | |
3.5 | 7.8 | |
18 days ago | about 2 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
graphql_clean-architecture_boilerplate
-
GraphQL + Clean Architectire boilerplate
Implementation repository
awilix
-
create generic BaseService working with TypeORM
In next post I will show you how to using with other DI package like awilix , tsyringe, etc...
-
Repository Pattern with Typescript and Node.js
In real project we have some Dependency Injection library, in my case it is Awilix. Now we need realize integration of repository with out DI solution.
-
Can someone suggest a simple dependency injection library for TypeScript/JavaScript?
I used awilix in several project, seems good enough for us, no problem so far. https://github.com/jeffijoe/awilix
-
GraphQL + Clean Architectire boilerplate
IoC: (stand for Inversion of Control) is an implementation of the Dependency Injection, the letter D in the SOLID principal. Every time you create a new Service class, or a new repository class, or a new controller, you need to register them in this container. This boilerplate uses Awilix library to achieve the factor.
- Um Guia sobre Injeção e Inversão de Dependências em Node.js e TypeScript
What are some alternatives?
nodejs-api-starter - 💥 Yarn v2 based monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI. [Moved to: https://github.com/kriasoft/relay-starter-kit]
InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
tsyringe - Lightweight dependency injection container for JavaScript/TypeScript
Ts.ED - :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
entrance-decorator - A minimal solution of dependency injection for projects that scale.
loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.
software-design-and-architecture-roadmap - 🧱 The software design and architecture roadmap for any developer
diod - A very opinionated inversion of control (IoC) container and dependency injector for Typescript, Node.js or browser apps.
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.