English | Japanese
Boilerplate with Foundation for Sites and VueJS integration (Phase II)
This repository is an example of how to use Foundation for Sites in Vue Single Page Application. The project is a template (phase II) using webpack and babel, vue-cli. It is our policy to use the latest version of each. (See here (Foundation-Vue) for Phase I)
In Phase I, we only added Vue features to the Foundation (e.g., using the Foundation's standard Panini as a static file compiler), but in Phase II, we have positioned the Foundation as a plug-in so that you can create pages according to the Vue specification (instead of Panini, we use Vue's Vue Router and Vuex).
I wanted to work with the Foundation framework and Vue.JS. I found Setting up Vue 2 and Foundation 6 and vue-webpack4-babel7 to be very helpful. Without these two things, we would not have been able to proceed. Thank you.
To set up the template manually, you can first download it in Git.
git clone git@github.com:annrie/Vuedation.git projectname
cd projectname
Then, open the folder on the command line and install the required dependencies. You can also use npm, but I'm using yarn2.
# install dependencies
npx @yarnpkg/doctor # Setup of yarn2
echo "nodeLinker: node-modules" > .yarnrc.yml
yarn install
Finally, run yarn dev
to start up the server. The finished site will be created in a folder named dist
which can be viewed at the following URL.
http://localhost:8888
In order to build, perform yarn build
.
MIT Copyright © 2020-present, Annrie