AceBook is a social media platform that enables users to create profiles, share, like, dislike and comment on posts. This project was built in 10 days by Team byte4 of the February 2018 cohort at Makers Academy. Read about this journey in our blog.
- Back-end
- Front-end
- Test
- Deployment
Follow the instructions below to download a copy of the project and run it locally for testing and development purposes.
- Verify that a current version of Ruby is installed:
ruby -v
- Verify that PostgreSQL database is correctly installed on your local machine:
psql --version
- Verify that a current version of Rails is installed:
rails --version
Follow the instructions below to get both a test and a development environment running
git clone https://github.com/Byte4/acebook-byte4.git
bundle install
bin/rails db:create
bin/rails db:migrate
bin/rails server # Start the server at localhost:3000
In a web browser, visit localhost:3000
and register to Acebook to start posting messages.
rspec # Run the tests to ensure it works
The great majority of testing involved ensuring a successful implementation of the functionalities (e.g. successful web requests, correct page redirection, successful authentication, views displaying the appropriate messages). Below an example of 'functional test' to ensure a correct user sign up.
# User signup
require 'rails_helper'
feature "Signing up" do
let(:user) {FactoryBot.create(:user)}
scenario "user visits sign up page" do
visit new_user_registration_path
fill_in 'user[email]', with: user.email
fill_in 'user[password]', with: user.password
fill_in 'user[password_confirmation]', with: user.password
click_button'Sign up'
end
end
http://acebook-byte4.herokuapp.com/
Agnes Donat, Ammar Arjomand, Irfan Durrani, Antonio Ciniglio