A full stack rails application of a friends social media website where users can send and receive friend requests and share posts with each other. It uses associations and through associations to create friendships and mutual friendships. The features are listed next to the screenshots.
- Ruby v2.7.0
- Ruby on Rails v5.2.4
To get a local copy up and running follow these simple example steps.
- Ruby: 2.6.3
- Rails: 5.2.3
- Postgres: >=9.5
Instal gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
- On your recently forked repo, enable the GitHub Actions in the Actions tab.
- Create the
feature/branch
and push. - Start working on your milestone as usual.
- Open a PR from the
feature/branch
when your work is done.
Start server with:
rails server
Open http://localhost:3000/
in your browser.
rspec --format documentation
Tests will be added by Microverse students. There are no tests for initial features in order to make sure that students write all tests from scratch.
As a guest user:
- Once can create account/log in.
- One can see only “Sign in” and “Sign out” page.
- You are then directed to a timeline page that shows all posts and gives you the provision to create a new post.
- One can create new posts (text only).
- One can like/dislike posts (but I can like single post only once).
- One can add comments to posts.
- One can 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).
- Timeline page is the root page of the app.
- One can see all users list.
- One can see selected user page with their user name and all posts written by them (the most recent posts on the top).
- One can send a friendship invitation.
- One can click on My Friend Requests to view all your incoming friend requests and either accept or decline them.
- When you accept a friend request, it redirects to the Friends page that has a table showing all friends.
- One can see pending friendship invitations sent to me from other users.
- One can accept or reject friendships invitation.
- Once can click on Friends on the navbar to view all your friends in a tabular format with their emails and links to their profiles.
👤 Kaboha Jean Mark
- GitHub: @githubhandle
- LinkedIn: LinkedIn
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
Hat tip to Microverse for the README template, initial repo, instructions and tutoring for this Capstone project.
This project is MIT licensed.