Born to build better enterprise frameworks and apps with Node.js & Koa https://eggjs.org
Installation
$ npm install egg --save
Node.js >= 8.0.0 required.
Features
- ✔︎ Built-in process management
- ✔︎ Plugin system
- ✔︎ Framework customization
- ✔︎ Lots of plugins
Docs & Community
Getting Started
Follow the commands listed below.
$ npm install egg-init -g
$ egg-init --type simple showcase && cd showcase
$ npm install
$ npm run dev
$ open http://localhost:7001
Examples
See egg-examples.
from https://github.com/eggjs/egg
-----
Store all egg examples in one place.
Examples for egg
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
- cnode-api
- cookie-session
- cookie
- custom-env
- download
- framework
- hackernews-async-ts
- hackernews
- hackernews-datahub
- helloworld
- httpclient
- ipc
- middleware
- multipart
- passport
- progressive
- redefine-controller
- schedule
- sequelize-example
- static
- unittest
- view-nunjucks
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
from https://github.com/eggjs/examples
No comments:
Post a Comment