Skip to content

Egg.js is a popular open-source web application framework for Node.js. It is a modern, scalable, and easy-to-use framework that is heavily inspired by Ruby on Rails and built on top of Koa.js.

Notifications You must be signed in to change notification settings

fvucemilo/hackernews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this example

This example is a quickstart of Egg, it includes the basic and comprehensive usages of Egg such as Controller, Service and some simple configurations, moreover, it has the corresponding unit tests. you can follow this simple example and build your Egg application step by step.

How to run it locally

Development

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

Deploy

Use EGG_SERVER_ENV=prod to enable prod mode

$ EGG_SERVER_ENV=prod npm start

Npm Scripts

  • Use npm run autod to auto detect dependencies upgrade
  • Use npm run lint to check code style
  • Use npm test to run unit test

Requirement

Please ensure your node version is >=8.0 for Egg2.x.

some problems you might encounter

  • lack of MVC model development experience, click here to learn more
  • some concepts such as middleware, extend, helper are difficult to understand, see related docs to know more
  • encounter some errors during development, find issues to check if some solutions have been provided

About

Egg.js is a popular open-source web application framework for Node.js. It is a modern, scalable, and easy-to-use framework that is heavily inspired by Ruby on Rails and built on top of Koa.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published