aocattleya / GroupChat-App

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Ruby 69.1%Language:HTML 16.3%Language:CSS 9.2%Language:JavaScript 5.4%