/blog-app

Introduces the concept of ORM and the use of database migration files to maintain database schema

Primary LanguageRuby

📗 Table of Contents

📖 [ Blog app ] Ruby Rails

[blog app ] A sample blogging platform that allows you to create, manage, and publish content on the internet in the form of a blog.

ERDiagram: blog_app_diagram

🛠 Built With

  • Ruby on rails

Tech Stack

<

Client
Server
Database

Key Features

  • User resource
  • Comment resource
  • Post resource
  • Like resource
  • Model validations
  • Ability to add comments from the browser
  • Ability to add posts from the browser
  • Add likes to posts functionality
  • Rspec tests
  • Signup users

(back to top)

(back to top)

💻 Getting Started

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

Prerequisites

  • A web browser e.g Chrome.
  • Text Editor (VScode, Atom, Sublime text, etc)
  • Basic knowledge of ruby
  • Basic knowledge of RoR

In order to run this project you need:

  • install ruby
  • Install rails
  • Install postgresQl
  • Signup to Github

Setup

Clone this repository to your desired folder:

Command:

  • git clone git@github.com:Kasaija-Kenneth/blog-app.git
  • cd blog-app

Install

  • After opening the files in Visual Studio Code, open the VS Code integrated terminal and run the following commands:

bundle init bundle install gem install rails

Usage

  • Run the command in your terminal below to run the ruby program

run the rails server command in terminal run http://localhost:3000 in the browser url update config/database.yml with your local DataBase credentials

Run tests

  • run rspec command to do spec_tests
  • Run the rubocop -A command in your terminal for linter checks and corrections

Deployment

You can deploy this project using:

(back to top)

👥 Authors

👤 Kasaija Kenneth

👤 Recillah-Khamala

(back to top)

🔭 Future Features

-[ ] [ add authorization rules ]

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Write a message to encourage readers to support your project

If you like this project...

(back to top)

🙏 Acknowledgments

Give credit to everyone who inspired your codebase.

I would like to thank...

(back to top)

(back to top)

📝 License

This project is MIT licensed.

(back to top)