项目作者: YMC-GitHub

项目描述 :
run vue app ssr production with express (ssr mode)
高级语言: JavaScript
项目地址: git://github.com/YMC-GitHub/vue-ssr-pro-with-express.git
创建时间: 2020-01-09T03:16:39Z
项目社区:https://github.com/YMC-GitHub/vue-ssr-pro-with-express

开源协议:MIT License

下载


vue-ssr-pro-with-express

desc

vue app production with express (ssr mode)

project diretory constructor

get detail here

some important deps for csr production

  • express (use express framework)
  • express.router (use route help you?)
  • serve-static (use static file serve)
  • serve-favicon (to quickly use favicon)
  • morgan (use log for serve?)
  • compression (use zlip to compress)
  • lru-cache (mirco cache sth.)
  • connect-multiparty (support multi middleware?)
  • cookie-parser (parse cookie header and bind to req.cookies ?)
  • body-parser (parse req body for json , urlencoded ?)
  • moment (date library for parsing, validating, manipulating, and formatting dates?)

some config

config/server.config.js

01.where the host is? config

02.which port will use? config

03.where the html file to serve? config

04.what is the name of html files? config

05.where the static file to serve? config

some command

  1. # install dependencies
  2. npm install # or yarn install
  3. # serve in production mode
  4. npm start

author

yemiancheng ymc-github@gmail.com

contributor

eteplus eterplus@gmail.com

License

MIT