Skip to content

ps2qwert/vue2.0Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue2.0

基于vue2.0框架写的小项目,感谢豆瓣提供相关电影api。用vue-cli作为脚手架,axios进行接口访问,nodejs作为中间件跨域访问豆瓣api。在跑项目前记得node server.js,开启node服务。

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

电影排行榜

image

电影详情页

image

电影搜索页

image

后续会整合vuex,热映页面尚未开发,需要豆瓣更高级权限, 如果要上线需要修改webpack.config.js,把publicPath给注释掉,否则会报路径错误.

  output: {
    path: path.resolve(__dirname, './dist'),
    //publicPath: '/dist/',
    filename: 'build.js'
  },

About

Vue2.0实现豆瓣电影

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published