Skip to content

yantsong/Douban-Moblie-Website

Repository files navigation

Douban

Awesome douban DEMO created with Vue2.x + Vuex + Vue-router + vue-resource

Features

  • Vue + vue-router + vuex + vue-resource working together
  • Modern JavaScript syntax with ES6
  • vue-cli webpack template
  • Single-file Vue Components
  • API request seperated
  • Real remote API and some mock data
  • eslint linter integration
  • Hot-reload in development
  • Css with Sass
  • No third party CSS framework
  • Authentication with JSON Web Tokens
  • Complex and different style view logic
  • Infinite loading list
  • Complete login logic
  • Complete search logic
  • Custom components like List, Rating, Tags ... ....

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Libraries

API

  • Basic URI : https://api.douban.com/V2/
  • Online activities
  • Activities list : /event/list?loc=108288&count=&start=
  • Single activitie info : /event/id
  • Movie
  • In theaters : /movie/in_theaters?count=
  • Coming soon : /movie/coming_soon?count=
  • Top 250 : /movie/top250?count=
  • Single movie info : /movie/subject/id
  • Book
  • Search some books : /book/search?q=&count=
  • Single book info : /book/id
  • Search
  • Search books : /book/search?q=
  • Search movie : /movie/search?q=
  • Login
  • In development

For detailed explanation, checkout the douban api

File Structure

.
├── build
│   ├── build.js
│   ├── check-versions.js
│   ├── dev-client.js
│   ├── dev-server.js
│   ├── utils.js
│   ├── vue-loader.conf.js
│   ├── webpack.base.conf.js
│   ├── webpack.dev.conf.js
│   └── webpack.prod.conf.js
├── config
│   ├── dev.env.js
│   ├── index.js
│   └── prod.env.js
├── index.html
├── LICENSE
├── package.json
├── README.md
├── src
│   ├── App.vue
│   ├── assets
│   │   ├── book_zw.jpg
│   │   ├── douban-app-logo.png
│   │   └── promotion_bg.jpg
│   ├── components
│   │   ├── Banner.vue
│   │   ├── Card.vue
│   │   ├── DownloadApp.vue
│   │   ├── Group.vue
│   │   ├── HeaderBar.vue
│   │   ├── List.vue
│   │   ├── Rating.vue
│   │   ├── Scroller.vue
│   │   ├── SubjectMark.vue
│   │   ├── SubNav.vue
│   │   ├── Tags.vue
│   │   └── Types.vue
│   ├── main.js
│   ├── router
│   │   └── index.js
│   ├── store
│   │   └── index.js
│   └── views
│       ├── BookView.vue
│       ├── DetailView.vue
│       ├── GroupView.vue
│       ├── HomeView.vue
│       ├── MovieView.vue
│       ├── PagesView.vue
│       ├── SearchView.vue
│       ├── StatusView.vue
│       └── SubjectView.vue
└── static
    └── logo.png

License

MIT

About

A Douban-website(mobile)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published