Skip to content

fxxqq/58fe.com

Repository files navigation

cnode

powered by Egg.js build status Test coverage David deps Known Vulnerabilities

QuickStart

see egg docs for more detail.

Environment Dependencies

macOS Install

brew install redis
# brew services start redis
brew install mongodb-community-shell
brew services start mongodb-community&&brew services start redis

Linux Install

TBD

Windows Install

TBD

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

// {app_root}/config/config.prod.js

exports.mini_assets = true;

exports.alinode = {
  // 从 `Node.js 性能平台` 获取对应的接入参数
  appid: process.env.EGG_ALINODE_APPID || '',
  secret: process.env.EGG_ALINODE_SECRET || '',
};
$ npm i --production
$ npm run assets
$ npm start
$ npm stop

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

Tutorials

About

基于egg-code二次开发的前端社区

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published