Skip to content

This repo includes intial code for social media app. Its purpose is to be a starting point for Microverse students.

Notifications You must be signed in to change notification settings

EdCrux/ror-social-scaffold

 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn LinkedIn


Social media app: Stay In Touch

This is the repo for the webapp Stay In Touch in http://stay-in-touch-by-kit-ed.herokuapp.com/. This is a social media app where a user can sign up authenticated user can interact with others, send friendship invitations and see only the posts of their friends. We made use of our diverse knowledge of rails in ActiveRecord, ActionController and RSpec for testing.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Click on the image to visit the live version! available at stay-in-touch-by-kit-ed.herokuapp.com/ Product Name Screen Shot

The Entity Relation Diagram for this project was the following,

In this project we planned all the associations needed for the funtionality and ensured the following features:

  • As a guest user:

    • Able to create account/log in.
    • Only see “Sign in” and “Sign out” page.
  • As a logged-in user:

    • Access all users list.
    • Access selected user page with their user name and all posts written by them (the most recent posts on the top).
    • Send a friendship invitation.
    • Access button “Invite to friendship” next to the name of user who is not my friend yet - on both users’ list and single user page.
    • Access pending friendship invitations sent to me from other users.
    • Accept or reject friendships invitation.
    • Create new posts (text only).
    • Like/dislike posts (but I can like single post only once).
    • Add comments to posts.
    • Access “Timeline” page with posts (with number of likes and comments) written by me and all my friends (the most recent posts on the top).
    • Timeline page should be the root page of the app.

Built With

The project was developed using the following technologies:

Instalation Guide

Click on the following link,

  1. Wait for the workspace to load and then click on the terminal, type brew install postgresql and hit enter to install postgres for database
  2. After it finishes, You will be promptd with a message: "A service is available on port 8334", select: "Make Public"
  3. Copy and paste the last line you get from your terminal, it should be something like pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres start and hit enter to start the postgres server
  4. After it finishes, You will be promptd with a message: "A service is available on port 5432", select: "Make Public" and close the new notification
  5. After its done, type bundle install to install all required gems
  6. Go to config/database.yml and double click to edit
  7. Go to line 22 and 23 and uncomment them, save with ctrl + s
  8. Run rails db:create and hit enter
  9. Run rails db:migrate and hit enter
  10. Run rails c and hit enter to interact with the objects in the console (User, Comment, Friendship, Like, Post: see the schema for more information)

-> or see the direct page working on https://stay-in-touch-by-kit-ed.herokuapp.com/ and you can use the page directly in the browser!!

Test

For the test, click on the following link,

  • Follow steps 1 to 9 from the Instalation Guide above
  • Once you are done, type rspec --format documentation and press enter to see the 35 test for this project
  • You can see the test files by clicking on the left panel in the folder spec and checking the files inside models and integrations

Roadmap

See the open issues for a list of proposed features (and known issues).

Contact

Project Link: https://github.com/EdCrux/ror-social-scaffold

Kitzia Paola Vidal Marroquin - Github user: kitpao

kitpao91@gmail.com   | Portfolio   | LinkedIn   | Twitter

Jesus Eduardo Cruz Valdez - EdCrux

jecruxiz@gmail.com   | My Repositories   | LinkedIn   | Twitter

Contributing

🤝 Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgements

License

📝 MIT License

About

This repo includes intial code for social media app. Its purpose is to be a starting point for Microverse students.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 75.1%
  • HTML 17.7%
  • CSS 6.0%
  • JavaScript 1.2%