Skip to content

Repository files navigation

Logo

SurFriends

Project by Thales Neves
Created with Ruby On Rails.

‎ ‎ ‎ ‎

SurFriends Social Media

Table of Contents

Preview

About SurFriends

Surfriends is a twitter like social media web app with the porpuse of finding new surf friends and share ideas about surfing.

Main Features

I created the basic features of a social media app.

Profile

Each user has a profile with proper authentication with email and password for login and logout, users can also upload his profile picture and also edit all information at any time. The profile also stores and show stats of the user.

The User also can access other users profile to check their stats, posts and follow them.

Posts and Feed

The main features of the page it's the Posts and Feed.

Each user can create Posts to share his thoughts to other users, the user can delete his own posts at any time.

The Feed shows all other users posts also in order of creation in the Home Page.

Follow and Unfollow

Like any social media I implemented a way to create a connection with other users by follow and unfollow feature. After following another user, his posts will appear now in your feed. The user can also unfollow the user at anytime.

In each user profile there is also a link to the list of the people he is following and his followers.

A list of users that you're not following yet will appear in your home page as suggestion for you to follow them.

When visiting other user profile, also it shows a list of the users that are following him.

Live Demo

SurFriends

Video Presentation

Video Presentation

Technical

  • MVC architecture pattern
  • Active Record as ORM, validations and associations
  • Active Storage for uploading and manage images
  • Test Driven Development with Rspec and Capybara
  • RESTful routes

Built With

💻 Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Install Ruby: 2.7.0

Install Rails: 5.2

Install Postgres: >=9.5

Setup

Instal gems with:

bundle install

Setup database with:

   rails db:create
   rails active_storage:install
   rails db:migrate

Usage

Start server with:

    rails server

Open http://localhost:3000/ in your browser.

Run tests

    rpsec --format doc

Deployment

In order to deploy this app to Heroku follow the steps below

Install the Heroku CLI

After that type the command to create the app and add the heroku repository to your project

    heroku create

Then deploy the app.

    git push heroku {your-branch}:master

Change {your-branch} for the name of your local branch

For example:

    git push heroku surfriends:master

If you are deploying from the master branch you can just push with just master.

    git push heroku master

Follow the instructions on your terminal to get the URL where your app was deployed

Finally run the command to create your database and tables on Heroku's server

    heroku run rake db:migrate

Author

👤 Thales Neves

🤝 Contributing

Contributions, issues and feature requests are welcome!

Just go to project's issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

Social Media web app created with Ruby on Rails. Project developed using TTD and Rspec for unit tests. Users can follow other users, make posts, and more.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages