Total Pageviews

Wednesday 21 November 2018

egg,一个基于Node.js的企业级的框架

Born to build better enterprise frameworks and apps with Node.js & Koa 

NPM version NPM quality build status Test coverage David deps Known Vulnerabilities NPM download Gitter

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

from https://github.com/eggjs/egg
-----
Store all egg examples in one place.

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
from https://github.com/eggjs/examples

No comments:

Post a Comment