项目作者: chaoyue-daily

项目描述 :
cms framework build on nest, export rest and graphql api
高级语言: TypeScript
项目地址: git://github.com/chaoyue-daily/chaoyue-daily-cms.git
创建时间: 2019-03-20T14:06:32Z
项目社区:https://github.com/chaoyue-daily/chaoyue-daily-cms

开源协议:

下载


Description

Based on Nest framework.

Installation

  1. $ npm install

Running the app

  1. # update database config in ormconfig.json
  2. {
  3. "type": "mysql",
  4. "host": "xxxxxxxx",
  5. "port": 3306,
  6. "username": "dev",
  7. "password": "xxxxxxxx",
  8. "database": "xxxxxxxx",
  9. "entities": ["src/**/**.model{.ts,.js}"],
  10. "synchronize": true
  11. }
  12. # development
  13. $ npm run start
  14. # watch mode
  15. $ npm run start:dev
  16. # production mode
  17. $ npm run start:prod

Test

  1. # unit tests
  2. $ npm run test
  3. # e2e tests
  4. $ npm run test:e2e
  5. # test coverage
  6. $ npm run test:cov