axiosを用いてAPIを取得するだけのプロジェクト
axiosというVue.jsのAjax通信ライブラリを利用し、ローカルサーバーで立ち上げたWordPressのREST APIを非同期で取得する。 node.jsのバージョンは8系のものを利用する。
利用方法は下記の通り。
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.