View on GitHub

vuejs-with-rails-api-and-jwt-example

Vue.js example with rails-api and JWT

前后端分离示例

clone the repo

git clone https://github.com/huobazi/vuejs-with-rails-api-and-jwt-example.git

run the backend

cd vuejs-with-rails-api-example/back-end

bundle

bundle exec rails db:migrate

bundle exec rails s

run the frotend

cd vuejs-with-rails-api-example/front-end

npm install

npm run serve