/Blog-App

Primary LanguageRubyOtherNOASSERTION

📗 Table of Contents

📖 BLOG APP

Blog App is a blog website that shows the list of posts and empower readers to interact with them by adding comments and liking posts.

🛠 Built With

Tech Stack

Ruby on Rails

Client
  • Ruby
Server
  • Rails.js
Database

🚀 Live Demo

(back to top)

💻 Getting Started

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

Prerequisites

In order to run this project you need:

 gem install ruby
 gem install rails

-->

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone git@github.com:myaccount/my-project.git
  bundle install
  rails db:create 
  rails db:migrate

Install

Install this project with:

  cd my-project

Usage

To run the project, execute the following command:

  cd Blog-app
  rails c
  To create users :

 irb(main):001:0> first_user = User.create(name: 'Lilly', photo: 'https://unsplash.com/photos/F_-0BxGuVvo', bio: 'Teacher from Poland.',post_counter: 0)
  
  irb(main):001:0> second_user = User.create(name: 'Lilly', photo: 'https://unsplash.com/photos/F_-0BxGuVvo', bio: 'Teacher from Poland.',post_counter: 0) 

  create post :
  
  irb(main):001:0> first_post = Post.create(author: first_user, title: 'Hello', text: 'This is my first post',likes_counter:0, comments_counter: 0)
  
  create cpmment :

  irb(main):001:0> Comment.create( author: second_user, post: first_post, text: 'Hi Tom!')
  
  start server :
  
  /Blog-App$ rails crails server

Run tests

To run tests, run the following command:

rspec

(back to top)

👥 Authors

Mention all of the collaborators of this project.

👤 Ahmed Nazir Musah

👤 Evans Kupour

(back to top)

Future Features

  • Forms
  • Authentication

🤝 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 project feel free to leave a star.

(back to top)

🙏 Acknowledgments

I would like to thank all those who inspired this project.

(back to top)

(back to top)

📝 License

This project is MIT licensed.

(back to top)