📗 Table of Contents
- 📖 About the Project
- 💻 Getting Started
- Setup
- Prerequisites
- Install
- Usage
- Run tests (#triangular_flag_on_post-deployment)
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
📖 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
💻 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
👥 Authors
Mention all of the collaborators of this project.
👤 Ahmed Nazir Musah
- GitHub: @ahmednazirmusah
- Twitter: @ahmednazirmush
- LinkedIn: LinkedIn
👤 Evans Kupour
Future Features
- Forms
- Authentication
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
⭐️ Show your support
If you like this project feel free to leave a star.
🙏 Acknowledgments
I would like to thank all those who inspired this project.
📝 License
This project is MIT licensed.