This project pretends to be an npm package to create a folder structure for a node typescript server using expressJS implementing clean architecture
run npx folderforge start-project
to create the base structure of the project
then you'll be able to add modules using npx folderforge add-module -n <module-name>
npx folderforge start-project
npx folderforge add-module -n users
npx folderforge add-module -n products
npx folderforge add-module -n orders
-
src
-
core
- config
- middlewares
- modules
- routing
- services
-
modules
-
users
-
data
- datasource
- pg_data_source.ts
- interfaces
- customer_data_source.ts
- utils
- datasource
-
domain
- models
- customer_model.ts
- repositories
- customer_repositories.ts
- customer_repository_implementation.ts
- models
-
presentation
- customer_middlewares.ts
- customer_router.ts
- index.ts
-
-
...
-
-
- node_modules
- package-lock.json
- package.json
- tsconfig.json
- Implement
CustomError
types - Implement
presentation
layer