Giter VIP home page Giter VIP logo

group-manager's Introduction

Group Maneger

ユーザ登録 + 参加団体登録

[email protected]:NUTFes/sample_admin_roles.git 210465e4f714148b3a8f91ed6c908407517654a7 よりアプリ名を変更

実装した機能

  • 1ユーザ, 1権限
    • UserモデルとRoleモデルを紐付け
  • ユーザ登録時 -> devise
    • メール送信, URLを踏むと認証完了(メールアドレス確認)
    • デフォルトroleを設定
  • 管理画面 -> ActiveAdmin
  • アクセス, 機能制限 -> cancancan

主なgem

gem 'rails', '4.2.1'
gem 'pg'

gem 'devise'
gem 'activeadmin', github: 'activeadmin'
gem 'cancancan', '~> 1.10'

必要な環境変数

#Gmailの例
export SMTP_ADRESS=smtp.gmail.com
export SMTP_PORT=587
export EMAIL_DOMAIN=gmail.com
export SMTP_AUTH=plain
export SMTP_TLS=false
export EMAIL_USERNAME=ユーザ@gmail.com
export [email protected]'
export EMAIL_PASSWORD=パスワード
export EMAIL_SENDER='送信者名 <ユーザ@gmail.com>'

# local環境で動作させる例
export DEFAULT_URL='localhost:3000'

Setup方法

docs/setup.mdを参照

作業記録

docs/log.md

データバックアップ方法

参考 Heroku PGBackups

# 一覧
heroku pg:backups
# 必要なバックアップをダウンロード
heroku pg:backups public-url a022

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.