https://github.com/onetapinc/locked-rails-web-spa-sample
https://github.com/onetapinc/locked-rails-web-spa-sample
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onetapinc/locked-rails-web-spa-sample
- Owner: OnetapInc
- Created: 2019-07-14T16:48:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T13:49:50.000Z (over 2 years ago)
- Last Synced: 2025-01-04T06:17:51.923Z (5 months ago)
- Language: JavaScript
- Size: 2.94 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lockedを活用したSPAデモアプリ(Nuxt + Rails)
一般的なNuxt.jsのSPAに対してAPIでRailsを活用しているWEBアプリの一例になります。### 動作確認
```
cd client
npm i && yarn
npm run dev
# => localhost:4000
``````
cd server
bundle install --path vendor/bundle
``````
mysql -u root -p
mysql> CREATE USER 'satounextuser'@'localhost' IDENTIFIED BY 'satounextpass';
mysql> GRANT ALL ON *.* TO 'satounextuser'@'localhost';
``````
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rails s -b 0.0.0.0
# => localhost:3000
```※登録時にメールがこなかったら
```
bundle exec rails c
pry> SignUpRequest.last.token
=> "aea7e684-679c-4c6e-8c05-906b76e0dbd6"# localhost:4000/signup/confirm/aea7e684-679c-4c6e-8c05-906b76e0dbd6
```