Using Vue to imitate a app.
简介:这是一个使用vue全家桶做的一个app demo,纯粹学习而已。
vue2 + vue-router + axios + webpack + express
用express 搭建的后台,因为没有数据库,所使用的数据是读取的本地json 文件,数据采集的有限,所以都是重复利用的,看到刷新到重复数据不要惊讶,这不是bug :scared: ]。
#先克隆项目
git clone https://github.com/eidonlon/imitate-beautiful-thing.git
#进入文件夹
cd imitate-beautiful-thing
#安装依赖
npm install
#运行
npm run dev
#请在chrome下调成手机模式预览
#另,项目打包[此处只打包了前端的代码,后台并没有一起被打包]
npm run build
线上效果请戳这里;(在chrome下请调成手机模式预览);
效果gif:
首页
作品
设计师
我的
详情
看到这里,给个star 吧。
# 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