Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vic778/blog
This application is a blog where anyone can access and create an article that will be commented by other users. the article can be edited or deleted. similarly, the comment can be deleted and each article is linked to a comment through its Id.
https://github.com/vic778/blog
Last synced: about 2 months ago
JSON representation
This application is a blog where anyone can access and create an article that will be commented by other users. the article can be edited or deleted. similarly, the comment can be deleted and each article is linked to a comment through its Id.
- Host: GitHub
- URL: https://github.com/vic778/blog
- Owner: vic778
- Created: 2022-03-22T04:27:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T03:24:07.000Z (over 2 years ago)
- Last Synced: 2023-03-03T21:13:34.467Z (almost 2 years ago)
- Language: Ruby
- Homepage:
- Size: 3.48 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog
> This application is a blog where anyone can access and create an article that will be commented by other users. the article can be edited or deleted. similarly, the comment can be deleted and each article is linked to a comment through its Id.
![Demo](https://github.com/vic778/blog/blob/master/screen/demo.gif)
This API is made of three models:
- Post model
- Comment modelThe API has the following endpoints:
returns all the an article
`GET /blogs`
allows admin to create an article
`POST /blogs/new`
returns a specific an article
`GET /blogs/id`
allows admin to edit an article
`PUT /blogs/id`
allows admin to delete an article
`DELETE /blogs/id`
## Built With
- Rails
- Ruby## Getting Started
Here are the steps to follow in order to get this project on your local computer.
### Prerequisites
`rails v7.0.2 +`
`ruby v3.0.2 +`
### Setup
clone this repo by typing `git clone https://github.com/vic778/blog`
### Install
install the dependencies by typing `bundle install`
### Usage
start the local server by running `rails s`
### Testing
run the tests by typing `bundle exec rspec`
### Deployment
N/A
## Author
👤 **Victor Barh**
- GitHub: [@Vvic778](https://github.com/vic778)
- Twitter: [@victoirBarh](https://twitter.com/)
- LinkedIn: [LinkedIn](https://linkedin.com/in/victoir-barh)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the [issues page](issues/).
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- Hat tip to anyone whose code was used !
## 📝 License
This project is [MIT](lic.url) licensed.