Skip to content
/ Cat-Lovers-Blog Public template

This is a basic Blog website that allows users to create, edit, comment and delete posts, keeping data in a database. This project implements both authorization and authentication in order to provide extended functionality to logged in and authorized users.

License

Notifications You must be signed in to change notification settings

digia3d/Cat-Lovers-Blog

Repository files navigation

Blog App

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 version

ruby 3.0.4

System dependencies

  • Node
  • Ruby
  • Rails
  • Git

Configuration

  • Run app
    • rails server

Database creation

  • create database blog_app

How to run the test suite

  • Ruby linter test: rubocop
  • Style linter test: ``npx stylelint "**/*.{css,scss}"

How to run tests

  • 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.

Testing

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
    

Routes for testing

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

Author

👤 Aleksandra Ujvari

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

This is a basic Blog website that allows users to create, edit, comment and delete posts, keeping data in a database. This project implements both authorization and authentication in order to provide extended functionality to logged in and authorized users.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published