• Stars
    star
    194
  • Rank 200,219 (Top 4 %)
  • Language Vue
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐇 vue^2.5.2 + express + stylus elm demo

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