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
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.
- Ruby on Rails
- SASS, Ruby
- ERB file template,
- Rails
- Yarn
- Postgre DB
- Ruby
- 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 clonehttps://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 rspec
on the terminal to run the tests
👤 Teddy-Livingstone Ememandu
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to Nelson Sakwa whose design was used. The design can be found here:
- Inspiration