Giter Site home page Giter Site logo

appeleme-project's Introduction

appEleme-project

vue2高仿饿了么app

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

构建项目

vue init webpack appEleme-project

npm run dev

cnpm install node-sass --save-dev
cnpm install sass-loader --save-dev   // sass-loader依赖于node-sass

cnpm install vue-resource --save

cnpm install better-scroll --save-dev

项目脑图

image

markdown文件说明

编译打包

  1. npm run build 生成dist文件,dist文件是npm run build执行以后被编译打包生成的文件,CSS,JS,图片等文件都在dist文件中。

image

  1. 打开dist下的index.html,空白页

image

  1. 路径不对,config/index.js中,改路径之后重新npm run build打包

image

  1. 可以打开了,但是mock数据无法加载

image

  1. 在项目根目录建立测试的http server---prod.server.js,并且config/index.js

image

  1. 命令node prod.server.js,浏览器输入localhost:9000运行成功。

image

appeleme-project's People

Contributors

ccyinghua avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.