Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesbrel/node_mdc_and_modular_arch
MDC, modular architecture is a particularly interesting concept... for a project that is structured, maintainable and scalable without a hitch...
https://github.com/jamesbrel/node_mdc_and_modular_arch
express inversify inversify-express javascript modularization mvc-architecture node typescript
Last synced: about 2 months ago
JSON representation
MDC, modular architecture is a particularly interesting concept... for a project that is structured, maintainable and scalable without a hitch...
- Host: GitHub
- URL: https://github.com/jamesbrel/node_mdc_and_modular_arch
- Owner: JamesBrel
- License: mit
- Created: 2024-05-28T23:48:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-29T01:14:09.000Z (7 months ago)
- Last Synced: 2024-05-29T14:21:48.668Z (7 months ago)
- Topics: express, inversify, inversify-express, javascript, modularization, mvc-architecture, node, typescript
- Language: TypeScript
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Node Server : MDC and Modular Architecture
### Author : James Brel
### Contact : [email protected]
------
## Architecture
the architecture of each feature is based on the MDC which is constituted mainly of 3 layers :
- Data
- Models
- Controllers
```
π¦features
β πsay_hello_to_world
β β£ πcontrollers
β β£ πdata
β β πmodels
```## General Folder Structure Tree
```
π¦project
β£ π.vscode
β β πsettings.json
β£ πenvs
β β£ πdev.env
β β£ πprod.env
β β πstaging.env
β£ πlib
β β£ πsrc
β β β£ πcore
β β β β£ πconfigs
β β β β β£ πinversify_config.ts
β β β β β£ πmiddle_config.ts
β β β β β πserver_config.ts
β β β β πinit.ts
β β β£ πfeatures
β β β β£ πapp_feats
β β β β β πsay_hello_to_world
β β β β β β£ πcontrollers
β β β β β β β πsay_hello_to_world_controller.ts
β β β β β β£ πdata
β β β β β β β£ πimpls
β β β β β β β β πhello_to_world_impl.ts
β β β β β β β πinterfaces
β β β β β β β β πhello_to_world_inter.ts
β β β β β β πmodels
β β β β β β β π.gitkeep
β β β β πusers_feats
β β β β β πfeature_name
β β β β β β£ πcontrollers
β β β β β β β π.gitkeep
β β β β β β£ πdata
β β β β β β β£ πimpls
β β β β β β β β π.gitkeep
β β β β β β β πinterfaces
β β β β β β β β π.gitkeep
β β β β β β πmodels
β β β β β β β π.gitkeep
β β β πshared
β β β β£ πconstants
β β β β β£ πapi_const.ts
β β β β β£ πnumber_const.ts
β β β β β πstring_const.ts
β β β β£ πextensions
β β β β β πexpress.d.ts
β β β β£ πglobal
β β β β β πstring_variable.ts
β β β β£ πhelpers
β β β β β π.gitkeep
β β β β£ πlogs
β β β β β πlogger.ts
β β β β£ πmiddlewares
β β β β β£ πtoken_middle.ts
β β β β β πuploder_middle.ts
β β β β£ πresults
β β β β β£ πresult_failure.ts
β β β β β£ πresult_success.ts
β β β β β πtype.ts
β β β β πservices
β β β β β£ πjwt
β β β β β β πrequests
β β β β β β β£ πcreate_token_request.ts
β β β β β β β πverify_token_request.ts
β β β β β£ πmongoose
β β β β β β£ πconfigs
β β β β β β β£ πindex_config.ts
β β β β β β β πmongoose_config.ts
β β β β β β£ πrequests
β β β β β β β£ πmongoose_delete_request.ts
β β β β β β β£ πmongoose_get_request.ts
β β β β β β β£ πmongoose_insert_request.ts
β β β β β β β πmongoose_update_request.ts
β β β β β β£ πschemas
β β β β β β β πuser_schema.ts
β β β β β β πutils
β β β β β β β πroot_util.ts
β β β β β£ πsecurity
β β β β β β πrequests
β β β β β β β£ πcrypt_request.ts
β β β β β β β πverify_request.ts
β β β β β πsequelize
β β β β β β£ πconfigs
β β β β β β β π.gitkeep
β β β β β β£ πschemas
β β β β β β β π.gitkeep
β β β β β β πutils
β β β β β β β π.gitkeep
β β πindex.ts
β£ πtest
β β π.gitkeep
β£ π.eslintignore
β£ π.eslintrc
β£ π.gitignore
β£ π.prettierignore
β£ π.prettierrc
β£ πbabel.config.json
β£ πecosystem.config.cjs
β£ πjest.config.json
β£ πnodemon.json
β£ πpackage.json
β£ πreadme.md
β£ πtsconfig.json
β πtypedoc.json
```## Usage and Configuration
After downloading or cloning the Git Repository
1. go to the **project** folder and copy all the content in your server's project
2. go into your **package.json file**, fill the following points:
- "name" : Specify the Project Name
- "description" : Specify the Project Description
- "url" : "git+url" (complete the url line with the git url of your repository)
- "author" : Specify the Project Author (Organisation name)
3. and type ***npm install*** to install all packages of Dependencies and Dev_Dependencies---
Copyright Β© 2024 James Brel All Rights Reserved