pvarentsov/typescript-clean-architecture
소개
TypeScript로 클린 아키텍처 기반 애플리케이션을 만들어 보려는 시도입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- -4
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTypescript 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
- User
- Post
- Media
Use Cases
User -> IPoster
Usercan createGuestaccount inIPosterUsercan createAuthoraccount inIPoster
User -> Media
Authorcan create ownMediaAuthorcan edit ownMediaAuthorcan get ownMediaAuthorcan get ownMedialistAuthorcan remove ownMedia
User -> Post
Authorcan create own draftPostAuthorcan edit ownPostAuthorcan attach an imageMediato ownPostAuthorcan publish ownPostAuthorcan get ownPostAuthorcan get ownPostlistAuthorcan remove ownPostAuthorandGuestcan get publishedPostAuthorandGuestcan get list with publishedPosts
Local Development
Docker
All necessary external services are described in the ./docker-compose.local.yml:
- Run
docker-compose -f docker-compose.local.yaml up -d - Stop
docker-compose -f docker-compose.local.yaml stop
Services:
- PostgreSQL - Credentials.
- Minio - Credentials.
- Run
Building
- Install libraries -
npm install - Build application -
npm run build
- Install libraries -
Configuring
Configuring is based on the environment variables. All environment variables must be exposed before starting the application. See all environment variables.
Running
Start application -
npm run startExpose ./env/local.app.env and start application -
npm run start:local
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
- Prepare environment -
Libraries checking
- Show new libraries' versions -
npm run lib:check - Upgrade libraries' versions -
npm run lib:upgrade
- Show new libraries' versions -
IDE
IntelliJ IDEA:
Visual Studio Code:
관련 프로젝트 살펴보기
불러오는 중…