Skip to content

基于 Egg + Fis3+ TypeScript + Nunjucks 多页面服务端渲染同构工程骨架项目

License

Notifications You must be signed in to change notification settings

a526672351/egg-fis3-typescript-multiple-html-boilerplate

Repository files navigation

egg-fis3-typescript-multiple-html-boilerplate

Based on Egg.js + Fis3+ TypeScript + Nunjucks multi page server rendering isomorphic engineering skeleton project

QuickStart

Development

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

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

Deploy

Assets should be compiled before shipping.

$ npm run web:prod

Start Egg with prod environment.

$ npm run tsc
$ npm start

Features

  • Build code inspection workflows with husky and lint-staged
  • Develop / Deploy with Docker

Npm Scripts

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

Requirement

  • Node.js 8.x
  • Typescript 2.8+
  • docker
  • docker-compose

Docker Compose

  • docker-compose.yml
  • Use docker-compose up -d to start
  • Use docker-compose down to stop
  • Use docker-compose down -v to remove volume/cache

License

MIT

About

基于 Egg + Fis3+ TypeScript + Nunjucks 多页面服务端渲染同构工程骨架项目

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published