This blog App is used to create posts where users can like and comment. It uses ruby on rails and postgresql.
- Ruby
- Rails
To use this application, you have to install Ruby
, then Ruby on rails
clone this project using git clone https://github.com/JoffreyNK/blogs-app
and install the depencancies using bundle install
and the you will need postgresql database log in it and create blogs
database manually
and after you need to create fields using the following commands
first run: rails generate model user name:string photo:string bio:text post_counter:integer
second: rails generate model post title:string text:text comments_counter:integer likes_counter:integer user:references
third: rails generate model like post:references user:references
fourth: rails generate model comment text:text post:references user:references
now run rails db:migrate
The application was tested and all testing are running correctly. I have tested two parts:
- The first part I tested all models of the application and their functionalities
- The second part I tested controllers with the routers application controllers and some content on pages of each view file
- capybara
- rspec-rails
- rails-controller-testing
๐ค Joffrey
- GitHub: @joffreynk
- Twitter: @joffreynk
- LinkedIn: joffreynk
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc
This project is MIT licensed.
NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.