/Ruby-on-Rails-Content-App

This is the Capstone project that signs the completion of the Ruby on Rails module in the Microverse Curriculum. It is a web app where users can register and create content. As a logged in user, it is possible to create articles and vote on articles. The app can be used also in read only mode, with restricted access to its features.

Primary LanguageRuby

Table of Contents

About The Project

This is the Capstone project that signs the completion of the RubyOnRails module in the Microverse Curriculum. It is a web app where users can register and create content. As a logged in user, it is possible to create articles and vote on articles. The app can be used also in read only mode, with restricted access to its features.

screenshot-1

Built With

This project was built using these technologies.

  • Ruby & Ruby on Rails
  • Rspec / Capybara
  • Bootstrap
  • HTML / CSS / SCSS
  • PostgreSQL
  • Rubocop

Walkthrough Video and Deployment (Heroku)

Getting Started

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

Prerequisites

  • Ruby: 3.3.0
  • Rails: 6.1.3.1
  • PostgreSQL is necessary
  • Install Yarn

Clone

  • download zip link or clone this repo:
    • Clone with SSH:
      git@github.com:JohnHernCode/Rails-Capstone.git
    
    • Clone with HTTPS
      https://github.com/JohnHernCode/Rails-Capstone.git
    
    

Setup

Install gems with:

$ bundler install --without production

Setup database with:

$ rails db:create before migration
$ rails db:migrate (creates and migrates the database)
$ rails db:seed    (seeds the database with default values)
$ rake database:correction_seq_id  (corrects the postgreSQL sequence after seed)

Usage

Start server with:

$ rails server

Open http://localhost:3000/ in your browser and click sign up to create a new user.

  • for any technical problems running rails db:migrate:reset && rails db:seed && rake database:correction_seq_id should solve it

Create User and Log In

Fill the sign up form to create a user

Create a new article from the menu

Type your title and text, add an image, and category

Automated Test

  • Run the command and see the output: $ bundle exec rspec

Database Structure

  • Database schema used for this project reflects the following structure: erd

Potential future features

  • Extend the signin / signup process to social accounts, use verfied email process
  • Improve the front-end

Contributors

👤 John Hernandez

🤝 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!

Acknowledgements

Credits

📝 License

This project is MIT licensed.