# gateway **Repository Path**: ezy369/gateway ## Basic Information - **Project Name**: gateway - **Description**: 学习Nest.js框架,TypeScript。 使用Nestjs开发一个网关系统。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-12-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: Nestjs, TypeScript ## README # Gateway 网关系统 ## 核心功能 我们的网关系统架构可以分为两大模块,分别是代理转发的基础模块以及独立的用户模块。 ### 一、网关基础服务 1. 专注于前后端资源分发以及不同类型的项目 API 分发; 2. 常用资源缓存模块; 3. AB Test 模块; 4. 通用日志模块。 ### 二、统一用户中心系统 1. 用户登录、认证等基础功能; 2. 权限系统(基于 RBAC 包括角色、系统、资源等权限控制)。 ### 三、物料系统 物料系统只是作为一个辅助类型的项目为网关服务提供静态资源路由的配置、资源版本的管理等功能。 ## Project setup ```bash $ npm install ``` ## Compile and run the project ```bash # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod ``` ## Run tests ```bash # unit tests $ npm run test # e2e tests $ npm run test:e2e # test coverage $ npm run test:cov ```