The scope of this project was to build a mini social network similar to Twitter, which allows users to post and connect with each other.
The app has the following features:
- User can create account/log in
- Guest user can only visit the Sign In and Sign Up pages
- Logged-in user can see a list of the users on the app
- Logged-in user can view profiles of all users and their posts
- Logged-in user can create posts (text only) and get likes / dislikes, and also like posts from friends
- Logged-in user has a timeline where he/she can see ONLY posts from friends
- Logged-in user can add comments to posts
- Logged-in user can send a friendship invitation and also receive invitations from other friends
- Logged-in user can decide to Accept / Reject friendship invitations
- Rails
- Ruby
- RSpec
To get this project up and running locally, you must already have ruby and necessary gems installed on your computer
To get this project set up on your local machine, follow these simple steps:
- Open Terminal
- Clone the repository
git clone https://github.com/oracleot/ror-social-scaffold.git
- Move into project directory
cd ror-social-scaffold
- Install required gems
bundle install
- Create database
rails db:create
- Run database migration
rails db:migrate
- Start your server
rails server
- Run the app
http://localhost:3000
RSpec was used for testing and several test use cases have been created. To test, simply follow the instructions below:
- Open Terminal
- Make sure you are in the root directory, if not
cd ror-social-scaffold
- Run
rspec
in your terminal to run all tests - Alternatively, feel free to run each test separately by running
rspec spec/path_to_test
E.grspec spec/models/comment_spec.rb
- Watch all tests / specific tests pass
👤 Meron Ogbai
- Github: @meronokbay
- Twitter: @MeronDev
- Linkedin: linkedin
👤 Damilola Oduronbi
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
This project is MIT licensed.