A swift TypeScript-based Express web framework based on swift-express. It adopts the aspect-oriented programming style and implements useful modules like logging aspect and global exception handler to boost the development. GraphQL is integrated with the REST API.
- Duplicate
.env.example
as.env
and configure environment variables; - Configure
Dockerfile
anddocker-compose.yml
; - Compose and run containers.
docker compose up -d
- Duplicate
.env.example
as.env
and configure environment variables; - Configure
Dockerfile
; - Build Docker image
docker build -t vcs .
- Run in container
docker run -p <host_port>:<container_port> --name <container_name> -d vcs
- Install dependencies
yarn install
-
Duplicate
.env.example
as.env
and configure environment variables -
Build project to
dist
npm run build
- Run project
npm run start
*/api-docs/
Refer to User.ts
and User.dto.ts
to create new entities and data transfer objects in folder src/models
.
Refer to UserRepository.ts
to create new repositories in folder src/repositories
.
Refer to UserService.ts
to create new services in folder src/services
.
Refer to UserResolver.ts
to create new resolvers in folder src/resolvers
Refer to UserController.ts
to create new controllers in folder src/controllers
Run project in development server
npm run dev
npm run lint