8000 GitHub - tasato1150/MovieFile
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tasato1150/MovieFile

Repository files navigation

README

アプリ名

MovieFile

概要

映画のレビューサイトです。 画像につきましては著作権を考慮し、ダミー画像を使用しております。

本番環境

http://3.114.213.74/

ログイン情報(テスト用)

制作背景(意図)

映画が趣味なのでレビュー内容をまとめられるサイトを作りたいと思ったため。

実装機能一覧

  • ユーザー新規登録、ログイン機能
  • 投稿機能
  • いいね機能
  • コメント機能
  • ジャンル別一覧

使用技術

言語

Ruby/Haml/SCSS/Javascript

ワークフレーム

Ruby on Rails

インフラ

AWS EC2/AWS S3

データベース

MySQL

DB設計

usersテーブル

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

Association

  • has_many :tweets
  • has_many :comments, dependent: :destroy
  • has_many :likes, dependent: :destroy
  • has_many :like_tweets, through: :likes, source: :tweet

tweetsテーブル

Column Type Options
image string null: false
title string null: false
rate float null: false
text text
user_id integer null: false, foreign_key: true

Association

  • belongs_to :user
  • has_many :comments, dependent: :destroy
  • has_many :likes, dependent: :destroy
  • has_many :liked_users, through: :likes, source: :user
  • has_many :tweet_genres
  • has_many :genres, through: :tweet_genres, dependent: :destroy
  • accepts_nested_attributes_for :genres, allow_destroy: true

genresテーブル

Column Type Options
name string null: false

Association

  • has_many :tweet_genres
  • has_many :tweets, through: :tweet_genres

tweet_genresテーブル

Column Type Options
tweet_id integer null: false, foreign_key: true
genre_id integer null: false, foreign_key: true

Association

  • belongs_to :tweet
  • belongs_to :genre

commentsテーブル

Column Type Options
text text null: false
user_id integer null: false, foreign_key: true
tweet_id integer null: false, foreign_key: true

Association

  • belongs_to :tweet
  • belongs_to :user

likesテーブル

Column Type Options
user_id integer null: false, foreign_key: true
tweet_id integer null: false, foreign_key: true

Association

  • belongs_to :tweet
  • belongs_to :user

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0