Store all egg examples in one place
JavaScript CSS TypeScript Smarty HTML
Clone or download
Permalink
Failed to load latest commit information.
.github feat: upgrade ts to egg2 (#50) Dec 14, 2017
assets-with-roadhog fix(assets-with-roadhog): unknown ip (#62) Mar 29, 2018
assets-with-umi fix(umi): disable service worker (#61) Mar 29, 2018
bin feat: add command for all examples (#45) Nov 9, 2017
cnode-api-async feat: use async function (#44) Nov 8, 2017
cnode-api fix: type is required when define validation Dec 11, 2017
cookie-session refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
cookie refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
custom-env refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
download refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
framework refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
hackernews-async-ts-di fix(tslint): value of rule interface-name (#60) Mar 29, 2018
hackernews-async-ts fix: ts test && pkg scripts (#67) Apr 5, 2018
hackernews-async feat: use async function (#44) Nov 8, 2017
hackernews-datahub feat: update macaca-wd (#77) May 30, 2018
hackernews fix: close html tag Jun 27, 2018
helloworld refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
httpclient feat: add roadhog + react example (#52) Feb 28, 2018
ipc refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
middleware feat: add command for all examples (#45) Nov 9, 2017
multipart refactor: use pump instead of stream modules (#80) Jul 20, 2018
passport refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
progressive style(progressive): upgrade to egg2.x (#49) Dec 11, 2017
redefine-controller refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
schedule feat: add command for all examples (#45) Nov 9, 2017
sequelize-example fix: fix typo (#72) May 2, 2018
sofa-rpc feat: add sofa-rpc showcase (#78) Jun 12, 2018
static refactor: change all app.verb to app.router.verb (#46) Nov 22, 2017
unittest feat: add roadhog + react example (#52) Feb 28, 2018
view-nunjucks feat: support macaca ui test (#71) Apr 20, 2018
.autod.conf.js feat: use async function (#44) Nov 8, 2017
.eslintignore feat: add sofa-rpc showcase (#78) Jun 12, 2018
.eslintrc refactor: let examples as separate project (#1) Jan 9, 2017
.gitignore feat: add datahub example (#74) May 23, 2018
.travis.yml refactor: use pump instead of stream modules (#80) Jul 20, 2018
LICENSE init Jan 8, 2017
README.md doc: update readme (#75) May 23, 2018
appveyor.yml feat: improve multipart example (#43) Oct 27, 2017
example.js feat: add command for all examples (#45) Nov 9, 2017
package.json feat: add command for all examples (#45) Nov 9, 2017

README.md

Examples for egg


build status node version egg version

Usage

Find the example, then run command below. For example, run the [hackernews-datahub] example:

$ cd hackernews-datahub
$ npm install
$ npm run dev

Recommend to use Node >= 8

List of examples

Development

Run test

$ npm test

You can use --verbose to show more infomation

$ npm test -- --verbose

Generate dependencies

$ npm run autod

Show list of examples

$ npm run list