/vue-rocket

An app with a Vue.js front-end and a Rust Back-end

Primary LanguageJavaScript

vue-rocket

A Vue.js + Rocket project

Build Setup for Production

# 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

Build Setup for Development

# 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.

TODO

  • Build a development version of Vue served by rocket (with hot reload)