yuanyong / egg-next-boilerplate

A boilerplate to build a app with next.js, eggjs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

egg-next-boilerplate

QuickStart

Development

$ yarn
$ yarn run dev
$ open http://localhost:7001/

Don't tsc compile at development mode, if you had run tsc then you need to yarn run clean before yarn run dev.

Deploy

$ yarn run tsc
$ yarn start

Npm Scripts

  • Use yarn run lint to check code style
  • Use yarn test to run unit test
  • se yarn run clean to clean compiled js at development mode once

Requirement

  • Node.js 8.x
  • Typescript 2.8+

TODO:

  • Need dva-no-router update with latest react-redux;

About

A boilerplate to build a app with next.js, eggjs.

License:MIT License


Languages

Language:TypeScript 96.0%Language:JavaScript 4.0%