Skip to content

Byte4/acebook-byte4

 
 

Repository files navigation

AceBook

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.

Technologies used

Getting started

Follow the instructions below to download a copy of the project and run it locally for testing and development purposes.

Prerequisites

  • 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

Installing

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.

Screenshots

Alt text Alt text

Testing

rspec # Run the tests to ensure it works

Examples of tests

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

Deployment

http://acebook-byte4.herokuapp.com/

Authors

Agnes Donat, Ammar Arjomand, Irfan Durrani, Antonio Ciniglio

Releases

No releases published

Packages

No packages published

Languages

  • HTML 74.6%
  • Ruby 17.6%
  • CSS 7.5%
  • JavaScript 0.3%