A todo app built in vue js to demonstrate server side rendering and client side hydration
A todo app built in vue js to demonstrate server side rendering and client side hydration
This application was built using node v7.9.0
npm v4.5.0
vue v2.2.6
.
npm install
npm run prod
http://localhost:8080/
All commands can also be found in the package.json scripts
npm run dev:server
npm run hot
http://localhost:8080/
Now you have hot module replacement for both the server side bundle and client bundle. Both of these must be running in order to run the app.
This todo app was an exercise in order to understand how to create a single page server side rendered vue js application. It also demonstrates how to properly use vuex, vue-router, and vue transitions. The todos are stored on the server in memory and are also prefetched before the initial page render. The client side then hydrates the data and puts it in a vuex store. Feel free to let me know how it can be improved.