项目介绍

FilipeMata/clean_architecture_typescript_example 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,目前获得 158 个 Star、19 次 Fork。

仓库全名
FilipeMata/clean_architecture_typescript_example
Star 数
158
Fork 数
19

README 摘要

Clean Architecture with Typescript This repository provides an implementation (or at least an attempt) of Uncle Bob's Clean Architecture with Typescript. Basically there is a folder representing each required layer: entities: This folder contains all enterprise business rules. It's represented by domain classes with most critical business rules. use-cases: This folder contains all aplication business rules. It's…

完整内容见 GitHub 原始 README 或本页 。

常见问题

clean_architecture_typescript_example 用什么语言开发?

主要使用 TypeScript 编写,目前有 158 个 Star。

如何获取 clean_architecture_typescript_example 的源码?

可以直接克隆仓库:git clone https://github.com/FilipeMata/clean_architecture_typescript_example.git,默认分支为 master;安装与运行步骤见仓库 README。

clean_architecture_typescript_example 最近还在维护吗?

仓库最近一次更新为 2024年2月1日,当前没有未关闭的 Issue;Star 数为 158,可作为社区活跃度的参考。

关于

This repository provides an implementation (or at least an attempt) of Uncle Bob's Clean Architecture with Typescript.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
200
价值分
100
活跃状态
活跃

语言占比

Dockerfile
JavaScript
Makefile
Shell
TypeScript

Release

README

Clean Architecture with Typescript

This repository provides an implementation (or at least an attempt) of Uncle Bob’s Clean Architecture with Typescript.

CleanArchitecture

Basically there is a folder representing each required layer:

  • entities: This folder contains all enterprise business rules. It’s represented by domain classes with most critical business rules.
  • use-cases: This folder contains all aplication business rules. It’s encapsulated in modules containing the use case interactors and its ports (one specific use case gateway interface and/or one specific use case presenter interface)
  • adapters: This folder contains all kind of code that adapts interfaces most familiar to infrastructure layer to interfaces most familiar do use case layer. For example, sometimes it’s needed to adapt one or more data access classes to an specific use case gateway interface.
  • infrastructure: This folder contains all libraries, frameworks and drivers needed by the aplication. It’s less important aplication layer, always depending on adapter’s layer.

Execution Instructions

To configure and execute this project, the Docker framework was used. And for the database MySQL was chosen.

Initial configurations

On the first stage, it is important to create the database in which store our data for the app.

make database

On the second stage, we will build the required images from Dockerfile/Docker Compose to initialize its contexts(network, port, volume)

make build

After having our database properly created, it is necessary to run a setup. At this point we are executing the migrations, seeds and building the packages we need to run the App.

make setup

Running the App

Finally, after configuring the project, you can start up the project running following command.

make up logs

评论

暂无评论