Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minusobjects/Message-Medium
A storytelling platform inspired by Medium; built in Ruby/Rails, JavaScript/React/Redux, and HTML/CSS.
https://github.com/minusobjects/Message-Medium
Last synced: 3 months ago
JSON representation
A storytelling platform inspired by Medium; built in Ruby/Rails, JavaScript/React/Redux, and HTML/CSS.
- Host: GitHub
- URL: https://github.com/minusobjects/Message-Medium
- Owner: minusobjects
- Created: 2017-04-17T15:36:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T14:20:12.000Z (over 7 years ago)
- Last Synced: 2024-05-28T02:18:41.166Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 5.32 MB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Open-Source-Ruby-and-Rails-Apps - Message-Medium - A storytelling platform inspired by Medium 👴 🔥 ✅ (Happy Exploring 🤘)
README
# Message
[Message live][app]
[app]: http://www.message-medium.net/
![image of home_page](docs/caps/m-cap-home.jpg)
**Message** is a full-stack single-page web application inspired by the blog/news site Medium. It utilizes Ruby on Rails (back-end), PostgreSQL (database), and React.js/Redux (front-end). The goal of Message is to provide an elegant and inviting experience for both the reading and writing of stories.
## Features & Implementation
### Writing and editing stories and responses
![image of story_input](docs/caps/m-cap-story-input.jpg)
Users may write their own stories via a spare, clean interface - the almost-entirely white page is meant to emulate the feeling of a blank sheet of paper. The more-complex functionality only becomes evident after some interaction: image uploading and linked topics via database associations, and rich text editing using tools adapted from the QuillJS library. In order to achieve the desired experience, I had to heavily edit the Quill interface. The database stores stories in specially-formatted HTML, which can then be rendered via React.
![image of story](docs/caps/m-cap-story.jpg)
Users may leave responses on stories or on other responses. The chain of responses (sorted by time and by comment thread) is managed through JavaScript algorithms; using the Redux architecture, users may seamlessly leave responses or edit their own responses.
Below is an initial wireframe drawing of the individual story page (note that the sidebar component is used to display that story's likes):
![image of story_page](docs/wireframes/story.png)
### Follows
![image of home_page](docs/caps/m-cap-profile.jpg)
Users may 'follow' other users by clicking on a modular React component. In addition to the user's information, each user profile page contains three feeds: stories and responses written by that user, stories and responses which have been liked by that user, and stories and responses by users followed by that user. This information is quickly retrieved from the server thanks to a series of associations between multiple database tables (`users`, `stories`, `responses`, `likes`, `follows`, and `followings`). Users may view these feeds by clicking on a custom SVG icon menu.
Below is an initial wireframe drawing of the user profile page:
![image of user_profile](docs/wireframes/user-profile.png)
### Likes
Through the Rails backend, stories are associated with topics and can be 'liked' by users. Database associations allow for a record of all stories and responses that any user has liked. By comparing data from the `likes` table with user information, various React components can detect whether or not the logged-in user has liked a story or response, updating their styles accordingly.
The goal was to seamlessly integrate the experience of 'liking' into the site, i.e. by showing a story's 'likes' in a sidebar that appears and disappears according to the user's position in the story (via JavaScript and CSS).
## Future Directions for the Project
In addition to the features already implemented, I plan to continue work on this project.
### Search
By utilizing the pg-search Ruby gem, I can integrate text-based search into the site.
### Highlights
Medium allows users to highlight sections of stories that they particularly like. It would be possible to achieve a similar functionality on Message by storing information about each highlighted passage in the database and rendering the highlights via CSS.