/Blog-app-rails

Front-end + Back-end Ruby on Rails app. The Blog app will be a classic example of a blog website. A fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

Primary LanguageRubyMIT LicenseMIT

Blog-app-rails

📗 Table of Contents

📖 [Blog-app-rails]

[Blog-app-rails] is a classic example of a blog website. A fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

🛠 Built With

Tech Stack

Client
Server
Database

Key Features

Describe between 1-3 key features of the application.

  • [Process data in models]
  • [Controllers specs]
  • [Add Post]
  • [Register User]
  • [Like Post]
  • [Add API endpoints]

🚀 Live Demo

(back to top)

🗺 Entity Relationship Diagram

Entity Relationship Diagram

(back to top)

💻 Getting Started

Prerequisites

In order to run this project you need:

 gem install rails

Setup

Using the terminal clone this repository to your desired folder (my-folder) and open it with VSCode:

  cd my-folder
  git clone https://github.com/MarcoOquendoC/Blog-app-rails.git
  cd Blog-app-rails
  code .

Install

First we need to configure the database, (we used dotenv-rails gem). create a file called .env in the root with the following content: Note: Change the right side of = in each line to match your correct postgresql password and username. The content should look like this:

  PG_HOST = 5432
  PG_USERNAME = postgres
  PG_PASSWORD = yourpassword
  PG_DB_DEV = blog-development
  PG_DB_TEST = blog-test

Using the console install this project with:

  bundle install
  rails db:create
  rails db:migrate
  rails db:seed
  rails tailwindcss:build

Usage

To run the project, execute the following command:

  rails s

Run tests

To run tests, run the following command:

  bin/rails test test/models/comment_test.rb
  bin/rails test test/models/like_test.rb
  bin/rails test test/models/post_test.rb
  bin/rails test test/models/user_test.rb

(back to top)

👥 Authors

Marco Marco Oquendo

Miliyon Miliyon Ayalew

(back to top)

🔭 Future Features

  • [Deploy]
  • [Add search]
  • [improve user interfase]

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this app, here is a hint. I love stars 🤩.

(back to top)

🙏 Acknowledgments

I would like to thank:

(back to top)

📝 License

This project is MIT licensed.

(back to top)