Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 413 Bytes

File metadata and controls

30 lines (21 loc) · 413 Bytes

前后端分离示例

  • vuejs 做前端
  • rails-api 做后端
  • 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