Giter VIP home page Giter VIP logo

douban's Introduction

Douban Book Website

Build Status

vue.js 2.0, vuex, vue-router, vue-server-renderer, express, cheerio, superagent, redis

1. Start

# start redis

# install dependencies
npm install

# start in development
npm run dev

# init data, start spider
curl http://host:port/api/spider // replace your host:port

# build for production
npm run build

2. Notes

  1. xxx

  2. open http://127.0.0.1:4000/api/spider, start spider

  3. pages:

3. Vue.js1.0 update to Vue.js2.0

  1. "window undefined" in server side render
  2. v-html replace {{{}}}
  3. webpack error: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.  trick:
$ npm uninstall webpack --save-dev

followed by

$ npm install [email protected] --save-dev

Then you should be able to gulp again. Fixed the issue for me.

npm run dev from: angular/angular-cli#2234

<div>
  <span v-for="n in 10">{{ n }}</span> // n
</div>
<div>
  <span v-for="(item, $index) in items">{{ $index }}</span> // $index
</div>

4. Update

2016 12 01 fix babel error

5. Tree

.
├── README.md 
├── build
├── index.html
├── server.js
├── frontend
│   ├── App.vue
│   ├── app.js
│   ├── assets
│   ├── client-entry.js
│   ├── components
│   ├── router
│   ├── server-entry.js
│   ├── store
│   └── views
├── backend
│   ├── spiders
│   └── routers
├── node_modules
├── package.json
├── public
└── test



douban's People

Contributors

playmyswift avatar ericjjj avatar luisdanielroviracontreras 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.