https://github.com/digia3d/cat-lovers-blog
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.
https://github.com/digia3d/cat-lovers-blog
postgresql rails ruby ruby-gem
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/digia3d/cat-lovers-blog
- Owner: digia3d
- License: mit
- Created: 2022-10-18T19:56:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T15:42:19.000Z (over 3 years ago)
- Last Synced: 2025-01-10T07:08:08.610Z (over 1 year ago)
- Topics: postgresql, rails, ruby, ruby-gem
- Language: Ruby
- Homepage:
- Size: 4.53 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](#prerequisites) section, then run the code below.
- Run all tests
- This should run all tests using 'RSpec-Rails' and (in some cases) 'Capybara'
```sh
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**
- GitHub: [@digia3d](https://github.com/digia3d)
- LinkedIn: [Aleksandra (Digital Marketing A3D) Ujvari](https://www.linkedin.com/in/aleksandra-ujvari-85235a210/)
- Twitter: [@ujvari65](https://twitter.com/ujvari65)
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/digia3d/Blog_App/issues).
## 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](./MIT.md) licensed.