Giter VIP home page Giter VIP logo

gigih-hub's Introduction

GigihHub Social Media API

GigihHub is a simple social media to share information with other people in the same community. This repository contains GigihHub APIs, built in Ruby without any frameworks ๐Ÿค“๐Ÿš€. This project is intended for learning purposes in Model-View-Controller (MVC) design pattern, practicing Test Driven Development (TDD), and Clean Code.

Functional Requirements

The Gigih Hub Social Media contains six functional requirements.

  • Saves user details (username, email, bio)
  • Lets user make a new post with hashtag
  • Lets user comment in a post with hashtag
  • Lets user attach media (jpg, png, mp4) in a post or comment
  • Lets user get posts with a hashtag
  • Shows 5 trending hashtags

Database Schema

ER Diagram

There are four tables created in the database.

  1. User, represents our social media user which contains user informations.
  2. Post, represents user's post. A post with parent_post_id is a comment to the parent post, meanwhile a parent without parent_post_id is the parent post.
  3. PostHashtag, represents the pivot entity of Post and Hashtag.
  4. Hashtag, represents hashtag (text initialized with #) in a post.

Prerequisites

  1. Ruby v3.0.1
  2. MySQL

Library Dependencies

These libraries are bundled in a Gemfile.

  1. Sinatra, for simple web server
  2. Mysql2, for database connector
  3. RSpec, for unit test
  4. SimpleCov, for test coverage
  5. Rubocop, for code linter, based on Ruby Guide Style

How to Run

(TBD)

gigih-hub's People

Contributors

ermasavior 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.