Skip to content
CNode 社区 Egg 版本
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
app refactor: remove the ctx (#141) Oct 17, 2018
bin
config
init.d/mongo
test/app
tutorials
.autod.conf.js Init with egg-init Mar 1, 2018
.dockerignore
.eslintignore feat: docker support (#38) Mar 8, 2018
.eslintrc convert proxy to service code Mar 1, 2018
.gitignore feat: add npm run assets Mar 18, 2018
.snyk
.travis.yml
Dockerfile
LICENSE
README.md feat: add egg link & badge (#114) Apr 10, 2018
app.js
appveyor.yml
docker-compose.dev.yml feat: docker support (#38) Mar 8, 2018
docker-compose.yml fix: update docs & dockerfile for building assets (#95) Mar 21, 2018
package.json fest: add topic api (#128) May 12, 2018

README.md

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 mongodb
brew services start redis
brew services start mongodb

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.