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
- About the Project
- Instalation guide
- Test
- Roadmap
- Contact
- Contributing
- Show your support
- Acknowledgements
- License
Click on the image to visit the live version! available at stay-in-touch-by-kit-ed.herokuapp.com/
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.
The project was developed using the following technologies:
Click on the following link,
- Wait for the workspace to load and then click on the terminal, type
brew install postgresql
and hit enter to install postgres for database - After it finishes, You will be promptd with a message: "A service is available on port 8334", select: "Make Public"
- 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 - 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
- After its done, type
bundle install
to install all required gems - Go to config/database.yml and double click to edit
- Go to line 22 and 23 and uncomment them, save with ctrl + s
- Run
rails db:create
and hit enter - Run
rails db:migrate
and hit enter - 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!!
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
See the open issues for a list of proposed features (and known issues).
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
🤝 Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
📝 MIT License