Li-00 / koa-small-island

Server side of small island

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

koa-small-island

小岛管家后台

项目结构

├── README.md
├── controller
├── index.ts
├── middleware
│   ├── logger.ts
│   └── request.ts
├── package.json
├── router
│   └── index.ts
├── service

目录解析

  • index.ts:项目入口文件
  • router:路由文件目录
  • controller:路由控制器目录,处理路由的业务逻辑
  • service:路由服务目录,处理和数据库相关的交互
  • middleware:中间件目录,Koa的核心**,洋葱模型,参考https://koajs.com/#application

项目配置

Lint工具

  • eslint,配置参考.eslintrc.js

commit校验工具

开发

注意:项目使用 yarn 作为包管理器

git clone git@github.com:HenryYangs/koa-small-island.git
cd koa-small-island
yarn install

本地启动

yarn run dev

正式环境编译

yarn run build

About

Server side of small island


Languages

Language:TypeScript 48.0%Language:JavaScript 44.0%Language:Shell 8.0%