Skip to content
🐇 vue^2.5.2 + express + stylus elm demo
Vue JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
dist
mock
src
static
.babelrc
.editorconfig
.gitignore
.postcssrc.js
README-CN.md
README.md
index.html
package-lock.json
package.json

README.md

vue-ele

home pop

ratings seller

Libraries

中文 请点这里

The following are some core dependence

  • vue(^2.5.2)
  • vue-router(^3.0.1):The official router for Vue.js
  • vue-resource :The plugin for Vue.js provides services for making web requests
  • express :web framework for Node.js
  • stylus :CSS preprocessor

Feature

Here are some of the features you may notice

  • vue 2.0 + express + stylus
  • data mock
  • mobile end one pixel
  • stricky footer

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

API

data mock api

  devServer: {
    //  add data mock api
    before(app) {
      app.get('/api/seller', function (req, res) {
        res.json({
          errno: 0,
          data: seller
        })
      })

      app.get('/api/goods', function (req, res) {
        res.json({
          errno: 0,
          data: goods
        })
      })

      app.get('/api/ratings', function (req, res) {
        res.json({
          errno: 0,
          data: ratings
        })
      })

    },
  • seller /api/seller
  • goods /api/goods
  • ratings /api/ratings

Thanks

You can’t perform that action at this time.