Git Product home page Git Product logo

stay-in-touch-media-app's Introduction

Stay in touch social media app with Ruby on Rails

This project consists in building a social media app called “Stay in touch” with the following features:

  1. As a guest user:

    1. I want to be able to create account/log in.
    2. I can see only “Sign in” and “Sign out” page.
  2. As a logged-in user:

    1. I want to be able to see all users list.
    2. I want to be able to see selected user page with their user name and all posts written by them (the most recent posts on the top).
    3. I want to be able to send a friendship invitation.
    4. I want to see a button “Invite to friendship” next to the name of user who is not my friend yet - on both users’ list and single user page.
    5. I want to be able to see pending friendship invitations sent to me from other users.
    6. I want to be able to accept or reject friendships invitation.
    7. I want to be able to create new posts (text only).
    8. I want to be able to like/dislike posts (but I can like single post only once).
    9. I want to be able to add comments to posts.
    10. I want to be able to see “Timeline” page with posts (with number of likes and comments) written by me and all my friends (the most recent posts on the top).
    11. Timeline page should be the root page of the app.

Built With

  • Ruby v2.7.0
  • Ruby on Rails v5.2.4
  • Postgresql
  • Devise
  • Bulma

Live Demo

Can be seen here

Prerequisites

  • Ruby: 2.7.0
  • Rails: 5.2.4
  • Postgres: >=9.5

Getting Started

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

  • Clone the repository by running in the console of your local machine the following command

    git clone https://github.com/Flakster/ror-social-scaffold.git
    
  • Change directory to ror-Flakster-social

Setup

If you have another ruby version and have rbenv, you can run:

  rbenv install 2.7.0

Install gems with:

bundle install

Setup database with:

  sudo -u postgres psql
  CREATE ROLE events WITH CREATEDB LOGIN PASSWORD 'pass123';

Exit postgres console \q Make sure you have your yarn packages up to date. If not:

  yarn install --check-files

Then

   rails db:create
   rails db:migrate

Usage

Start server with:

    rails server

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

Run tests

    rpsec spec/models/. --format documentation
    rpsec spec/features/. --format documentation

Deployment

 heroku create name-app
 git push heroku +HEAD:master
 heroku run rails db:migrate

Authors

👤 Carlos Santamaria

👤 Oscar Alfredo Gómez Elizarrarás


Show your support

Give a ⭐️ if you like this project!

Acknowledgments


📝 License

This project is MIT licensed.

Copyright 2020 Carlos Santamaria and Oscar Alfredo Gómez Elizarrarás

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


stay-in-touch-media-app's People

Contributors

flakster avatar alfredoelizarraras avatar nidalaa avatar bolah2009 avatar

Stargazers

Seth Zea avatar Miguel Tapia avatar Anna Muzykina avatar  avatar

Watchers

James Cloos avatar

stay-in-touch-media-app's Issues

May 29, 2020 | Code-Review : The Poodles

Nice wor team. One thing I realized is about the user experience. If you can disable the link to send a friend request and don't make it disappear. That would be nice

Peer to peer code review by Team 65 the Labradors

Hello Oscar and Carlos 👋 🐕‍🦺

Good job so far with your Friendship V1 milestone, you almost finish so keep up the good work! we suggested Oscar a couple of changes and these were they:

  1. Remove the logic from the views, no if-else statements should exist, instead always prefer to use helpers and partials to render the HTML elements you have in the conditionals.
  2. Style your "Invite To Friendship" link to look like a button because it's requested in the pathwright so we strongly recommend to have it.

That's it! 🙌

Happy coding! 🚀

Create an ERD Diagram

  • Create a diagram representing the data that the app will use.
  • Export and add an image of the diagram into the docs folder of the project repository.

Improve friendship V1

  • Read this question in stack overflow first.
  • Read this article next.
  • Implement friendships with 2 rows for mutual friendship.

Styling

  • Add bulma
  • Style each of the views.

Peer to peer code review by Team-65-The-Labradors

Hello Oscar and Carlos 🐕‍🦺

Amazing job, Congratulations on being approved, I like how you use OAuth for several platforms and also get the profile picture depending on the account that's used to log in that's very cool.

My suggestion would be that you read about how to upload images for posts and also how to use a storage provider like Amazon S3 because you might need it later in future projects. also, read the final chapter of the Michael hart book so you have an understanding of how followers work.

That's it, team! 🙌

Congratulations again, and keep up the good work 👏 🥂

Happy coding! 🚀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.