https://socialzeta.herokuapp.com/
SocialZ
is a open source social network built in Ruby on Rails.
- 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
- 2.5.1
- 5.2.1
- Postgresql
-
follow this (or other) guides to install ruby on rails on your device: (tutorial) https://gorails.com/setup/ubuntu/18.10
-
install postgresql in your system: (tutorial) https://www.youtube.com/watch?v=-LwI4HMR_Eg
-
clone this repository by executing this commands in your terminal:
$ git clone https://github.com/FarhanGazi/SocialZ.git
- move to the config directory
$ cd ~/SocialZ/config
-
open the
database.yml
file -
edit the file
default: &default
adapter: postgresql
encoding: unicode
username: YOUR POSTGRESQL USER_NAME
password: YOUR POSTGRESQL USER_PASSWORD
...
- write these terminal commands:
$ cd ..
$ rake db:setup
- then create the tables by executing the migrations:
$ rake db:migrate
- write the terminal command inside the porject directory:
$ bin/rails s
- 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 thehome
. - 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.