Skip to content

Mac Forum is an online web blog where users can join, create articles and upvote articles. The article with the highest vote gets featured on the from page

Notifications You must be signed in to change notification settings

TedLivist/mac-forum

Repository files navigation

Mac Forum

Mac Forum is an online web blog where users can join, create articles and upvote articles. The article with the highest vote gets featured on the from page

screenshot

This project was mainly built to demonstrate enough understanding of Rails dynamics. The homepage contains the article with the highest vote count; the different categories with each category container featuring the image of their respective recent articles.

Users can create articles and delete articles. Only the admin can create a category. Articles in a category are sorted by the most recent ones.

Built With

  • Ruby on Rails
  • SASS, Ruby
  • ERB file template,

Live Demo

Live Demo Link

Getting Started

Prerequisites

  • Rails
  • Yarn
  • Postgre DB
  • Ruby

Setup

To get a local copy up and running follow these simple example steps.

  • In your local PC, open your terminal in the folder you would like to clone the project.
  • Clone the repo with the command: git clone (copied link); like so: git clone https://github.com/TedLivist/mac-forum.git
  • Then run bundle install to install all the gems
  • Run yarn install to install the dependencies
  • Run yarn add bootstrap@4.3.1 jquery popper.js to install bootstrap 4 and its jquery and popper.js dependencies
  • Run rails db:create to create the database.
  • Run rails db:migrate to run the migration files
  • Run rails db:seed to create pre-existing Categories in the seed file
  • Run rails server to spin up a development server
  • Once the server is up, open this link http://localhost:3000 on your browser

Run tests

Run rspec on the terminal to run the tests

Authors

👤 Teddy-Livingstone Ememandu

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to Nelson Sakwa whose design was used. The design can be found here:
  • Inspiration

About

Mac Forum is an online web blog where users can join, create articles and upvote articles. The article with the highest vote gets featured on the from page

Topics

Resources

Stars

Watchers

Forks