The Blog app is a classic example of a blog website. I have created a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.
Things you may want to cover:
ruby 3.0.4
- Node
- Ruby
- Rails
- Git
- Run app
rails server
create database blog_app
- Ruby linter test:
rubocop
- Style linter test: ``npx stylelint "**/*.{css,scss}"
- Use Rspec gem to test our code.
- You can run those tests locally if you follow the steps:
- install all the gems running :
bundle install
- to run the file use :
rails server
- and then run:
rspec
.
- install all the gems running :
In order to run tests for this project make sure you have installed all previously mentioned prerequisites section, then run the code below.
- Run all tests
- This should run all tests using 'RSpec-Rails' and (in some cases) 'Capybara'
bundle exec rspec
http://localhost:3000/api/v1/users/1/posts/1/comments/
http://localhost:3000/api/v1/users/1/posts/1
http://localhost:3000/api/v1/users/1/posts
http://localhost:3000/api/v1/users/1
http://localhost:3000/api/v1/users
http://localhost:3000/api/v1/users/1/posts/1/comments/new
👤 Aleksandra Ujvari
- GitHub: @digia3d
- LinkedIn: Aleksandra (Digital Marketing A3D) Ujvari
- Twitter: @ujvari65
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.