Giter VIP home page Giter VIP logo

lifestyle_articles's Introduction

Contributors Forks Stargazers Issues

Ruby on rails

Lifestyle articles

Building a Rails website to post lifestyle articles

Report Bug Request Feature

This is the Capstone project. It is done after completion of Microverse Main technical curriculum section. Building this project is very important because:

  • It's a real-world-like project, built with business specifications
  • that will look nice in your portfolio and
  • You will get feedback about the achievement of technical and soft skills gained during this section of the program.

screenshot screenshot screenshot

Built with

  • Ruby on Rails
  • Bootstrap
  • RSpec

Features

  • Users
    • Signup/login/logout its simple only username is required
    • Create categories
    • Create articles with images
    • have many articles
  • Articles
    • Belongs to user
    • Have many and belongs categories
    • Have many likes
    • The most voted articles is the first to be displayed with big picture in home page
    • Other articles are displayed with their background images in order of most recent.
  • Categories
    • Have many and belongs to articles
    • All categories are displayed in navbar according to their priority
  • Likes
    • Belongs to user
    • Belongs to article

Next version

  • mobile responsive
  • admin requirement
  • same user is able to delete his own article

Requirement

  • Ruby '~>3.1.0'
  • Rails '~>7.0.3'
  • PostgreSQL 9.2.24

Usage

Clone this repository and run the following commands
$bundle install --without-production

$sudo service postgresql start

$rails db:migrate

$rails s

then open http://localhost:3000/

Run tests

Navigate to the project folder make sure Rspec is installed and then run the following command

$rspec -f d

Live demo of the project

Entity Relationship Diagram (ERD)

screenshot

Author

your support

Give a ⭐ if you liked this project

Acknowledgments

Credits go to

  • Nelson Sakwa who designed this template on behance.net
  • My mentor Raphael Noriode for technical assistance
  • All Microverse TSEs for their feedback that make me to improve technically

Challenges I faced

-Edit the credentials EDITOR=vim rails credentials:edit sudo apt-get install vim

rbenv: version ruby-2.6.3' is not installed solution: rbenv install 2.6.3`

undefined method 'signed_id' for nil:NilClass this is caused by no record in the active storage solution: rails db:reset

State changed from starting to crashed error code=H10 The above error was caused by typing error of variables instead of :amazon I typed :amazone in production.rb file

web: rake db:migrate && bin/rails server -b 0.0.0.0 -p { PORT: -3000 } && bin/rails css:watch

📝 License

This project is MIT licensed.

lifestyle_articles's People

Contributors

ibunhabibu avatar

Stargazers

masterplan avatar Fernando Bahamondes avatar Marcelo Araújo avatar Mo D. avatar Nick A. Haralampopoulos avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.