This is a rails blogging app designed for publishing programming articles. Users can create articles, categorize these articles, and vote.
- Users can log in to the app, only by typing the username.
- Users are presented with the homepage that includes:
- Featured article with full-width image and title in the first row. This is the article with the biggest number of votes.
- Latest article on the website right next to the featured article.
- List of all categories in order of priority. Each category displayed as a square with its name on the top and its most recent article's title at the bottom. The background image is the image of the most recent article in this category.
- When the user clicks the category name they can see all articles in that category
- Articles are sorted by most recent.
- Each article displays an image, title, truncated text as a preview, and its author name.
- Users can click the Read more button to read the full article.
- Users can click the star icon to vote article.
- Each page uses the same top menu and footer
- Top menu has user controls and categories listed as sections.
- Users can click their username and see their written articles.
- When the user opens the "Write an article" page:
- A form with all necessary fields is displayed.
- Users can use the rich text field to design their articles.
By default it only has username authentication, but it can be easily replaceable with a devise.
- Ruby on Rails 6.1
- Bootstrap 4.6
- Ruby 3.0
- Font Awesome
To get a local copy up and running follow these simple example steps.
You need Ruby & Postgresql in order to run this application on your Machine
- Install Ruby, Rails, and Postgresql to your computer by following this guide
- Clone this git repository.
git clone https://github.com/sinansevgi/reformer.git
- Open the terminal in the project directory using 'cd programming_articles'.
- Use
bundle install
to install Ruby dependencies. - Use
yarn install
to install Javascript dependencies. - From the terminal run
rails db:create
- From the terminal run
rails db:migrate
- You can start the server with rails s
- Visit
http://localhost:3000
from your browser
👤 Sinan Sevgi
- GitHub: @sinansevgi
- LinkedIn: @sinansevgi
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give an ⭐️ if you like this project!
- Design inspiration Nelson Sakwa
- Web Framework Rails
- CSS Framework Bootsrap
- Testing rspec rails
- Icons font-awesome
- Example articles taken from the FreeCodeCamp
- Eager loading tests bullet
This project is MIT licensed.