Code Monkey home page Code Monkey logo

histgram's Introduction

Histgram

Build Status Coverage Status Maintainability GitHub

image

An image submission type social network service like an instagram created with rails.

Usage

  1. Take memorable pictures.
  2. Upload the picture to Histgram.
  3. You are so happy!!

Demo

image

Author

Duuun

License

MIT

histgram's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dkmrkm1 avatar

Stargazers

 avatar

Watchers

 avatar

histgram's Issues

フォロー機能つけたいな ❤️

概要

フォロー機能つけたいね

実装

  • user_followsを作ろう

DB設計

user_follows

name type description
id integer id
followee_id integer user.id(フォローした人)
follower_id integer user.id(フォローされた人)
deleted_at datetime 論理削除
created_at datetime
updated_at datetime

giphy (1)

Headerの調整

Header, Sidenavの調整

  • #5 レスポンシブ対応。searchマークをpcとスマホでいい感じに表示する
  • #12 タイトルロゴ

📖タグ付けしたいな

概要

投稿にタグを付けたい。
Not Twitter Yes Qiita.

実装

Toxi法を使う

Toxi法

3つのテーブルを作る方法。最も正規化でき、タグに情報を付与することもできる。Scuttle法と違うのはtagを違うDBで管理することで情報を付与しやすくした。(疑問tagmapDBは1行につき1tag_idにすべきか改行、もしくはコンマで1セルに入れてしまうか)

参照元: https://qiita.com/you8/items/b2394104c6f9865f5d46

DB設計

postsはそのまま

tags_on_posts

name type description
id integer id
post_id integer post.id
tag_id integer tag.id
deleted_at datetime
created_at datetime
updated_at datetime

tags

name type description
id integer id
name string クールな名前
deleted_at datetime
created_at datetime
updated_at datetime

giphy

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.