Coder Social home page Coder Social logo

bosaichat's Introduction

防災くん(災害情報共有)

概要

このアプリは災害情報をみんなで共有することができるアプリです。具体的にはテキスト、画像を投稿することができます。また投稿内容に対してコメントすることも可能です。 URL https://bosaikun.herokuapp.com/ テストアカウント Name テストくん、 Email test@mail、 Password test123

制作背景

このアプリを作り始める数ヶ月前に台風があったため作ってみようと思った。簡単に災害情報を集めたり、発信できる災害専用のアプリがあれば災害時に安心だと考えました。

工夫したポイント

投稿フォームはJavaScriptでモーダルにした。また投稿を送信した後は非同期で投稿が表示されるようにした。都道府県検索で投稿を検索できるようにした。

機能説明

9a0e1a8f862c64fc299bafb187bcc3ed テキストや画像を投稿して災害情報を共有することができます。

bc462d0bb8eb1799b102d07953aed08f このような投稿フォームになっています。

34dce514cec38c9c34e105d4cde14381

投稿に対してコメントをすることもできます。

今後実装したい機能

マイページを作成してユーザーが自分の登録した情報や自分の投稿を編集、削除できるようにしたいです。またマイページでユーザーがプロフィールを載せられるようにするのも面白そうだと思っています。

使用技術

HTML,CSS,Ruby,JavaScript

usersテーブル

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

Association

- has_many :posts - has_many :comments

postsテーブル

Column Type Options
content string
image string
region string null: false
user_id refereces null: false, foreign_key: true

Association

  • belongs_to :user - has_many :comments

commentsテーブル

Column Type Options
text string null: false
user_id references null: false, foreign_key: true
post_id references null: false, foreign_key: true

Association

  • belongs_to :user
  • belongs_to :post

bosaichat's People

Contributors

wakuwakukatsu avatar dependabot[bot] avatar

Watchers

 avatar

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.