Coder Social home page Coder Social logo

tumble's Introduction

Tumble

splash

Background and Overview

Tumble is a social media app project inspired by Tumblr.

Technology

Tumble is implemented using Ruby on Rails on the backend, PostgreSQL database, and React / Redux on the frontend, to create a seamless single-page app experience. Users can make a variety of different content posts, follow other users, like and comment on posts, search tags, and more. Integrated with Amazon Web Services to store uploaded content.

Features

Create Posts

Create text, photo, video, audio, quote, link, and chat posts with tagging

post

Comments and Likes

Comment on posts and like your favorite posts

comment

Search Functionality

Search tags for keywords to locate and discover specific posts faster

search

Search parameters utilize active record queries and are filtered in the backend for optimal performance

# posts_controller.rb
def index
    dashboard_posts = current_user.dashboard

    liked_posts = []
    current_user.likes.each do |like|
        liked_posts << Post.find(like.post_id)
    end

    all_posts = Post.all

    case 
        when params[:filter] =='dashboard'
            @posts = dashboard_posts
        when is_string_number?(params[:filter])
            user_id = params[:filter].to_i
            profile_user = User.find(user_id)
            user_posts = profile_user.posts
            @posts = user_posts
        when params[:filter] =='likes'
            @posts = liked_posts
        when params[:filter].present?
            search = params[:filter]
            @posts = Post.joins(:tags).where('tag_body LIKE ?', "%#{search}%")
        else
            @posts = all_posts
    end

end

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.