Use nuxt + iview-admin + koa2 development projects

The company recently doing a project, is still using the familiar vue development, data platform because of its large amount of data features, traditional spa model home for a long time to load, and in this way to the SSR load time optimization of the fold Obviously, at the same time also facilitate the conduct of SEO. So take the opportunity to learn Nuxt.js framework (document details, updates quickly, issue timely feedback) and iview (a relatively good UI, basically meet the needs of the project).

Screenshot portion of the project

A screenshot: account number and password free to fill

image description

Screenshot II:

image description

Screenshot three:

image description

Refresh your browser, retrieve the page from the server, see already rendered html

image description

project address

git clone https://github.com/moedong/nuxt-iview.git

installation

npm install

Develop

npm run dev

// GO to http://127.0.0.1:3000

test environment

// 需要pm2,如果没有安装的先安装  npm install -g pm2
npm run publish:test

Production Environment

// 需要pm2,如果没有安装的先安装  npm install -g pm2
npm run publish:prod

Reference material

nuxt.js
iview
iview-admin
koa-template

Guess you like

Origin www.cnblogs.com/homehtml/p/11896757.html