前后端分离示例
- 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