This monorepo was built using TypeScript, Node.js and React. All backend and frontend in the same monorepo
- easy to development
- easy to maintain
- backend and frontend shares same models
- easy to deploy
- run
yarn install
- packages/hospital-backend/database/online-hospital.sql saves mysql table info
- reference /packages/hospital-backend/configs/environments/development.ts as development config
yarn run app
start both frontend and backend
or
yarn workspace xxx run start
- yarn (no npm!)
- typescript
- eslint + prettier
- react(use functional components)
- antd
- koa
- typeorm
- mysql
packages/common
save common typescript models
/packages/hospital-backend/configs/environments/
use development and production environments
JWT JWT
CICD: Docker + Github Actions
- before merge master,squash your branch first,then rebase master, let our master commits be a straight line
- before start pull request 前,make sure all commits are head of master
- please use english for commit logs
- commit rules: eg
xxx: message
feat: add xxx function
fix: fix xxx problem
- reference 《Contributing to Angular - Commit Message Guidelines》