This project is an opinionated approach to SPAs within the wonderful worlds of October CMS, Vue.js, and Webpack. To get started, you'll need to have vue-cli installed. Once that's taken care of, execute the following command from your /themes
directory to create a new Vuetober theme.
vue init scottbedard/oc-vuetober-theme my-theme
cd my-theme
npm install
The dev server can be fired up on localhost:3000
with the following command.
npm run dev
Thanks to hot-reloading, when a source file is changed the DOM will re-render and our application will maintain state. All requests except /
will be proxied to normal October endpoints. When it's time to deploy, execute the following to build your production assets.
npm run build