Skip to content

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

Notifications You must be signed in to change notification settings

GreenLoofa/vue-rocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published