Skip to content

✏️ Chat app / Ruby on Rails + Haml, SCSS(BEM) + jQuery(Ajax) + MySQL + Nginx, AWS(EC2, S3)

Notifications You must be signed in to change notification settings

aocattleya/GroupChat-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

groupchat

📝 GroupChat-App

  • Ruby 2.5.1
    • Ruby on Rails 5.0.7.2
  • HAML
  • SCSS
    • BEM
  • JavaScript
    • jQuery
  • Font Awesome5
  • MySQL2
  • AWS
    • Amazon S3
    • Nginx
    • Unicorn
    • CarrierWave
    • capistrano

📘Usage

$ git clone https://github.com/aocattleya/GroupChat-App.git
$ cd GroupChat-App
$ bundle install
$ rails db:create
$ rails db:migrate
$ rails s
👉http://localhost:3000/

📦 Features

・Asynchronous communication

Ajax  

・Automatic updating

auto  

・Incremental search

Incremental search  

📊 Database design

ER

Table : users

Column Type Options
name string null: false
email string null: false, unique: true
password string null: false

Association

  • has_many : users_groups
  • has_many : messages
  • has_many : groups through: :users_groups

Table : groups

Column Type Options
name string null: false

Association

  • has_many : messages
  • has_many : users_groups
  • has_many : users through: :users_groups

Table : messages

Column Type Options
body text
image string
user_id integer null: false, foreign_key: true
group_id integer null: false, foreign_key: true

Association

  • belongs_to : user
  • belongs_to : group

Table : users_groups

Column Type Options
user_id integer null: false
group_id integer null: false

Association

  • belongs_to : user
  • belongs_to : group