A Vue.js + Rocket project
# cd to the Vue portion of the project
cd vue
# install dependencies
yarn install --ignore-engines
# build for production with minification
yarn run build
cd ..
# Rocket requires the nightly version
rustup override set nightly
cargo run
# In one terminal window, do:
cd vue
yarn install --ignore-engines
yarn run dev
> Your application is running here: http://localhost:8081
# In another terminal window, do:
cargo run
> 🚀 Rocket has launched from http://localhost:8000
# From vue, make axios calls / requests to http://localhost:8000
# From your browser, navigate to http://localhost:8080
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
- Build a development version of Vue served by rocket (with hot reload)