An open API service indexing awesome lists of open source software.

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.

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.