This repo includes code for basic social media app built with rails. The app allows users to create account, see other users, invite them to friendship, and accept or reject thier friendship requests. A user also can create posts, publish them on their timeline, and see his friends' posts. Also in this project, you can find some API endpoints of the Blog app. This will allow your app to be used in different ways, rather than just through your site - for example, a mobile app or a CLI application.
View the demo here
- Ruby v2.7.1
- Ruby on Rails v6.0.3
To get a local copy up and running follow these simple example steps.
The API endpoints return and receive JSON. The user must first sign-in to get the authentication key
CRUD | API endpoints |
---|---|
POST | /api/sign_in |
POST | /api/sign_up |
GET | /api/posts/:post_id/comments |
POST | /api/posts/:post_id/comments |
GET | /api/posts |
POST | /api/posts |
Ruby: 2.6.3 Rails: 5.2.3 Postgres: >=9.5
Install gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
Start server with:
rails server
Open http://localhost:3000/
in your browser.
rpsec --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.
👤 Hubert MUGABO
👤 Peter Mbuthia
- GitHub: @Blakbox23
- Twitter: @blakbox23
- LinkedIn: Peter Mbuthia
👤 Elyor Doniyorov
- Github: @elyor-doniyorov
- LinkedIn: @elyor-doniyorov
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Project inspired by Microverse Program
This project is MIT Lisenced