{"id":15557881,"url":"https://github.com/yothu/blog-app","last_synced_at":"2025-04-23T21:08:19.537Z","repository":{"id":40345414,"uuid":"485533842","full_name":"Yothu/blog-app","owner":"Yothu","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-04T02:00:17.000Z","size":233,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-23T21:08:13.930Z","etag":null,"topics":["blog","learning-by-doing","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yothu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-25T21:01:41.000Z","updated_at":"2022-05-23T14:32:23.000Z","dependencies_parsed_at":"2022-08-09T17:41:23.499Z","dependency_job_id":null,"html_url":"https://github.com/Yothu/blog-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"microverseinc/readme-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yothu%2Fblog-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yothu%2Fblog-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yothu%2Fblog-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yothu%2Fblog-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yothu","download_url":"https://codeload.github.com/Yothu/blog-app/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514786,"owners_count":21443209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","learning-by-doing","ruby-on-rails"],"created_at":"2024-10-02T15:21:03.604Z","updated_at":"2025-04-23T21:08:19.521Z","avatar_url":"https://github.com/Yothu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Microverse-blueviolet)\n\n# BLOG APP\n\n\u003e Blog Web Application that holds posts per user. \n\n## Built With\n\n- Ruby\n- Ruby on Rails\n- RSpec, PostgreSQL\n\n## Configuration\n\nTo use this project you first need to have installed the following:\n\n+ Node.js\n+ Ruby\n+ PostgreSQL\n+ Rails\n\n* Ruby version\n\nThe version of ruby that is needed for this project is \n\n+ 2.7.0\n\nOnce you have installed them, you need to use the following command to clone the repository:\n\n```git clone https://github.com/Yothu/blog-app.git```\n\n### Database creation\n\nNext, use this command to create the databases:\n```rake db:create```\n\nUse this command to run the migrations if necesessary:\n```rails db:migrate```\n\n### Email detection\n\nSome of the authentication pages of this project send emails for email confirmation and password modification.\n\nUse this command to install **mailcatcher**, a package that lets you catch and see the emails sent by the authentication pages.\n```gem install mailcatcher```\n\nThen use this command to run it:\n```mailcatcher```\n\nEnter this address in the browser to use mailcatcher:\n```http://127.0.0.1:1080```\n\nor\n\n```smtp://127.0.0.1:1025```\n\n## Usage\n\nFinally, use the following command to initialize the live server:\n\n```rails s```\n\n## API endpoints\n\nPOST a User\n\n```curl localhost:3000/api/v1/signup -H \"Content-Type: application/json\" -d '{ \"user\": { \"name\": \"[NAME]\",\"email\": \"EMAIL\",\"password\": \"[PASSWORD]\" } }'```\n\nGET all Users\n\n```curl localhost:3000/api/v1/users -H \"Authorization: [AUTH TOKEN]\"```\n\nGET a User\n\n```curl localhost:3000/api/v1/users/[USER ID] -H \"Authorization: [AUTH TOKEN]\"```\n\nGET all Post of a User\n\n```curl localhost:3000/api/v1/users/[USER ID]/posts -H \"Authorization: [AUTH TOKEN]\"```\n\nGET a Post of a User\n\n```curl localhost:3000/api/v1/users/[USER ID]/posts/[POST ID] -H \"Authorization: [AUTH TOKEN]\"```\n\nGET all Comments of a Post of a User\n\n```curl localhost:3000/api/v1/users/[USER ID]/posts/[POST ID]/comments -H \"Authorization: [AUTH TOKEN]\"```\n\nGET a Comment of a Post of a User\n\n```curl localhost:3000/api/v1/users/[USER ID]/posts/[POST ID]/comments/[COMMENT ID] -H \"Authorization: [AUTH TOKEN]\"```\n\nPOST a Comment in a Post of a User with your Account\n\n```curl localhost:3000/api/v1/users/[USER ID]/posts/[POST ID]/comments -H \"Content-Type: application/json\" -H \"Authorization: [AUTH TOKEN]\" -d '{ \"text\": \"we did it!\" }'```\n\n## Testing\n\nTo check the test use the following command:\n\n```bundle exec rspec ./spec```\n\n## Author\n\n👤 David Vergaray\n\n- GitHub:   [@Yothu](https://github.com/Yothu)\n- Twiter:   [@Daivhy](https://twitter.com/Daivhy)\n- LinkedIn: [David Vergaray](https://www.linkedin.com/in/david-vergaray-almontes-051a11127/)\n\n## Collaborators\n\n👤 **Sahar Abdel Samad**\n\n- GitHub: [@sahar-abdelsamad](https://github.com/Sahar-AbdelSamad)\n- Twitter: [@abdelsamadsahar](https://twitter.com/AbdelSamadSahar)\n- LinkedIn: [sahar-abdel-samad](https://www.linkedin.com/in/sahar-abdel-samad/)\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- Thanks to my family for their suport.\n\n## 📝 License\n\nThis project is [MIT](./MIT.md) licensed.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyothu%2Fblog-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyothu%2Fblog-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyothu%2Fblog-app/lists"}