Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Vue.js example with rails-api and JWT
https://github.com/huobazi/vuejs-with-rails-api-and-jwt-example

element-ui jwt jwt-auth jwt-authentication jwt-token jwt-tokens rails-api vue vuejs vuejs2

Last synced: 6 days ago
JSON representation

Vue.js example with rails-api and JWT

Awesome Lists containing this project

README

        

# 前后端分离示例

- 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
```