Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

typescript-clean-architecture

> 后端框架
Open source

It is my attempt to create Clean Architecture based application in TypeScript.

1.5K stars0 likes1 views
WebsiteGitHub

About

It is my attempt to create Clean Architecture based application in TypeScript.

# Typescript Clean Architecture It is my attempt to create Clean Architecture based application in Typescript.

## IPoster IPoster is a simple fictional application that allows users to publish posts. #### Main Entities 1. User 2. Post 3. Media #### Use Cases * User -> IPoster 1. `User` can create `Guest` account in `IPoster` 2. `User` can create `Author` account in `IPoster` * User -> Media 1. `Author` can create own `Media` 2. `Author` can edit own `Media` 3. `Author` can get own `Media` 4. `Author` can get own `Media` list 5. `Author` can remove own `Media` * User -> Post 1. `Author` can create own draft `Post` 2. `Author` can edit own `Post` 3. `Author` can attach an image `Media` to own `Post` 4. `Author` can publish own `Post` 5. `Author` can get own `Post` 6. `Author` can get own `Post` list 7. `Author` can remove own `Post` 8. `Author` and `Guest` can get published `Post` 9. `Author` and `Guest` can get list with published `Posts` ## Local Development * **Docker** All necessary external services are described in the [./docker-compose.local.yml](./docker-compose.local.yaml): * Run `docker-compose -f docker-compose.local.yaml up -d` * Stop `docker-compose -f docker-compose.local.yaml stop` Services: 1. PostgreSQL - [Credentials](./env/local.pg.env). 2. Minio - [Credentials](./env/local.minio.env). * **Building** 1. Install libraries - `npm install` 2. Build application - `npm run build` * **Configuring** Configuring is based on the environment variables. All environment variables must be exposed before starting the application. See [all environment variables](./env/local.app.env). * **Running** * Start application - `npm run start` * Expose [./env/local.app.env](./env/local.app.env) and start application - `npm run start:local` API documentation will be available on the endpoint GET http://localhost:3005/documentation

* **Linting** * `npm run lint` * **Testing** * Prepare environment - `docker-compose -f docker-compose.test.yaml up -d` * Run tests - `npm run test` * Run tests with coverage - `npm run test:cov` * **Libraries checking** * Show new libraries' versions - `npm run lib:check` * Upgrade libraries' versions - `npm run lib:upgrade` * **IDE** * IntelliJ IDEA: 1. [Launch Configuration](./asset/IdeaRunConfiguration.png) 2. [Test Configuration](./asset/IdeaTestConfiguration.png) * Visual Studio Code: 1. [Launch Configuration](./.vscode/launch.json) 2. [Test Configuration](./.vscode/settings.json)

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptback-endclean-architectureclean-codee2e-testing

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架