Rewrite the VUE cNode community based on vue + VUE-Router + vuex + ES6 + less + Superagent + flex.css
demo
download
Git clone https://github.com/lzxb/vue-cnode.git CD vue - cnode NPM install (install dependencies module) NPM install webpack - g (No webpack installation required)Copy the code
Running (nodeJS 6.0+)
NPM Run Dev (development version access: http://localhost:3000/) NPM Run Dist (Production release)Copy the code
function
1. Log in and log out 2. List page, view post 3. My message 5. Personal center 6. View others' profiles 7. Generate offline cache listCopy the code
feeling
React cnode (vue) react cnode (vue) react cnode (vue) Compared with react JSX, the vUE template is simple to start with, but Turing lacks expression ability. Since many of the company's background management systems were based on Bootstrap + jQuery, I prefer to recommend the use of VUE in the background. It can be directly introduced into the page without complicated configuration. If I build a complete webApp on the mobile terminal, I prefer to use React development, because I can still play React Native if I have the chanceCopy the code
set a small goal
Do not write vue at the same time as vue at the same time. Do not write vue at the same time as vue at the same time. I don't have a deep understanding of Redux, so I want to deepen my understanding of Redux. After completing the electron cnode, if there is no new technology explosion, I would probably write another RN-cnode using React NativeCopy the code
digression
Because I put vue-cnode on git Pages and thought the access speed was slow, I packaged vue-cnode into an offline cache webApp, and found that htML-webpack-plugin did not set the manifest server path. So the first foreigner pull code came naturally. If your packaged production version finds that the manifest file path is incorrect, don't panic. Just manually modify the index.js code of the html-webpack-plugin as followsCopy the code
//index.js 557 line, add assets. PublicPath return start + 'manifest="' + assets. PublicPath + assets.Copy the code