This web application functions as a social connector and its primary purpose is to facilitate the connection of users who have some certain needs with other users who can fulfil those needs. Hence, users can search for, connect with, and make their requests to other users who may not be within close geographic proximity.
- Ruby 2.3.1
- PostgreSQL 9.3.15
- jQuery
- Bootstrap CSS
Please have ruby, ruby on rails and postgresql installed before continuing with setting up this project. Depending on which OS you are using there may be different issues in setting up this project. However, the project should run successfully on c9.io.
To setup this project, please follow the instructions below:
- Restart the psql server:
sudo service postgresql restart
- Setup the database by running
rake db:create
andrake db:schema:dump
. - Follow this guide to fix the problem below:
PG::Error: ERROR: new encoding (UTF8) is incompatible
- Run
rake db:migrate
. - Run
rails server
and navigate to the port specified.
Below is a list of the gems and their use(s) in building the social application:
- Rails 4.2.5 - to scaffold the application structure.
- Devise - for user authentication, and security and session management.
- CarrierWave - to upload files from the Ruby application.
- acts_as_commentable - to implement the commenting feature.
- acts_as_follower - to create relationships between users as follower-following.
- public_activity - to implement news feed feature.
- will_paginate - to paginate the list of records.
- has_friendship - to create relationships between users as friends.
- jbuilder - to declare JSON structures.
- coffee-rails - as an adapter for the Rails asset pipeline.