Giter Club home page Giter Club logo

socialz's Introduction

SocialZ

https://socialzeta.herokuapp.com/

SocialZ is a open source social network built in Ruby on Rails.

In this platform users can:
  • upload posts with photos, then edit or destry them.
  • The posts are votable and commentable by the other users.
  • destroy comments
  • See all the other user's posts and profiles
  • Edit user data
Ruby version:
  • 2.5.1
Rails version:
  • 5.2.1
Database:
  • Postgresql
Environments setup:
  1. follow this (or other) guides to install ruby on rails on your device: (tutorial) https://gorails.com/setup/ubuntu/18.10

  2. install postgresql in your system: (tutorial) https://www.youtube.com/watch?v=-LwI4HMR_Eg

  3. clone this repository by executing this commands in your terminal:

$ git clone https://github.com/FarhanGazi/SocialZ.git
Dasabate setup:
  1. move to the config directory
$ cd ~/SocialZ/config
  1. open the database.yml file

  2. edit the file

default: &default
  adapter: postgresql
  encoding: unicode
  username: YOUR POSTGRESQL USER_NAME
  password: YOUR POSTGRESQL USER_PASSWORD
  ...
Database creation:
  1. write these terminal commands:
$ cd ..
$ rake db:setup
Database initialization:
  1. then create the tables by executing the migrations:
$ rake db:migrate
Run the project in local:
  1. write the terminal command inside the porject directory:
$ bin/rails s
Technical details:
  • SocialZ use the rails active storage to store the images
  • The comment are created and deleted by using AJAX
  • AJAX is used also when you like or delete the posts from your profile or from the home.
  • the app is stored in heroku with a hobby-dev plan, so it won't store the active storage like images more then 30 minutes.
Some screenshots...

screenshot from 2018-08-30 15-34-16 screenshot from 2018-08-30 15-35-15 screenshot from 2018-08-30 15-37-04 screenshot from 2018-08-30 15-38-29

socialz's People

Contributors

farhangazi avatar

Stargazers

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