mini-sns
Herokuによるデプロイ https://mini-sns-1227.herokuapp.com/
※SNS認証は、ローカル環境のみ可。 (APIにURLの追加およびプライバシーポリシーの作成を行っていないため。)
新規登録時に、SNS認証(Facebook・Googleアカウント)を利用して登録することができます。また、SNS認証で新規登録する際は、パスワードが自動生成され、ユーザーがパスワードを入力しなくて済むようになっています。
Column | Type | Options |
---|---|---|
nickname | string | null: false |
lastname | string | null: false |
firstname | string | null: false |
birthday | string | null: false |
string | null: false | |
encrypted_password | string | null: false |
- has_many :sns_credentials
Column | Type | Options |
---|---|---|
provider | string | |
uid | string | |
user | references | foreign_key: true |
- belongs_to :user
% git clone https://github.com/erika618/mini_sns.git
% cd mini_sns
% bundle install
% yarn install
% rails db:create
% rails db:migrate