Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebi75/drizzle-inversify-social-media
A simple Node.js backend that uses Drizzle ORM along Express.js and Inversify for dependency inversion
https://github.com/sebi75/drizzle-inversify-social-media
docker drizzle-orm express hexagonal-architecture inversifyjs rabbitmq typescript
Last synced: 20 days ago
JSON representation
A simple Node.js backend that uses Drizzle ORM along Express.js and Inversify for dependency inversion
- Host: GitHub
- URL: https://github.com/sebi75/drizzle-inversify-social-media
- Owner: sebi75
- Created: 2023-07-08T19:13:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-04T20:50:51.000Z (over 1 year ago)
- Last Synced: 2024-10-11T01:59:55.365Z (about 1 month ago)
- Topics: docker, drizzle-orm, express, hexagonal-architecture, inversifyjs, rabbitmq, typescript
- Language: TypeScript
- Homepage:
- Size: 329 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is not a production ready project. It is just a sample project mainly
created for learning purposes ( and also for fun ).The purpose of this repository is to display
how to create a project using the haxagonal architecture pattern with inversify
in a nodejs application with cutting edge ORM drizzle and message broker RabbitMQ
with publisher-consumer pattern where it makes sense ( like feed generations )## Why am I using Webpack?
1. To bundle the code and to make it easier to run the project and for other meta programming purposes like aliased imports.
2. To make it easier to split the services for deployment, considering for example the queue worker will be another instance(s) that will be running on a different machine.
3. It is the closest feel to a compiled language, the result being only one js minified bundle file that can be run on any machine that has the right nodejs version, only with pnpm install, pnpm build and pnpm start.
## Why am I using docker and docker-compose?
1. To emulate a production environment and make the development process easier for anyone who wants to run the project, establishing a standard environment for everyone.
2. To make it easier to deploy the project in a production environment ( considering the project is not production ready yet ) especially using kubeernetes or aws ecs.