{"id":14955655,"url":"https://github.com/binos30/blog-app","last_synced_at":"2025-07-18T22:07:33.325Z","repository":{"id":216683187,"uuid":"741010734","full_name":"binos30/blog-app","owner":"binos30","description":"A simple web app for CRUDing a blog post and sending feedback email with authentication using Rails 7, PostgreSQL, Solid Queue, Hotwire (Turbo + Stimulus), Bootstrap, Supabase, SendGrid, and Render","archived":false,"fork":false,"pushed_at":"2025-06-08T06:23:54.000Z","size":3711,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T06:25:50.412Z","etag":null,"topics":["article","blog","blog-article","blog-post","framework","hotwire-stimulus","hotwire-turbo","mvc","mvc-framework","rails","rails-application","rails-crud","rails-send-mail","ruby","ruby-on-rails","stimulus-rails","turbo-rails","web-framework"],"latest_commit_sha":null,"homepage":"https://instablog.onrender.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binos30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-09T14:14:27.000Z","updated_at":"2025-06-08T05:58:43.000Z","dependencies_parsed_at":"2024-01-27T06:27:20.329Z","dependency_job_id":"73650c66-eab8-4c28-8845-4007ac82c67a","html_url":"https://github.com/binos30/blog-app","commit_stats":{"total_commits":119,"total_committers":2,"mean_commits":59.5,"dds":0.008403361344537785,"last_synced_commit":"213eb2e446c619f6778797671beef7702e1fa3f9"},"previous_names":["binos30/blog-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binos30/blog-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binos30%2Fblog-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binos30%2Fblog-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binos30%2Fblog-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binos30%2Fblog-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binos30","download_url":"https://codeload.github.com/binos30/blog-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binos30%2Fblog-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265844995,"owners_count":23837695,"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":["article","blog","blog-article","blog-post","framework","hotwire-stimulus","hotwire-turbo","mvc","mvc-framework","rails","rails-application","rails-crud","rails-send-mail","ruby","ruby-on-rails","stimulus-rails","turbo-rails","web-framework"],"created_at":"2024-09-24T13:11:30.290Z","updated_at":"2025-07-18T22:07:33.315Z","avatar_url":"https://github.com/binos30.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InstaBlog\n\n[![Created Badge](https://badges.pufler.dev/created/binos30/blog-app)](https://badges.pufler.dev)\n[![Updated Badge](https://badges.pufler.dev/updated/binos30/blog-app)](https://badges.pufler.dev)\n[![CI/CD](https://github.com/binos30/blog-app/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/binos30/blog-app/actions/workflows/ci-cd.yml)\n[![Dependabot Status](https://badgen.net/github/dependabot/binos30/blog-app?icon=dependabot)](https://dependabot.com)\n\n## Setup\n\nPrerequisites\n\n- [Ruby 3.3.5](https://github.com/rbenv/rbenv)\n- [PostgreSQL](https://www.postgresql.org/download/)\n- [Node.js ^20.15.1](https://github.com/nvm-sh/nvm)\n\nCreate `.env` file at the root of the project directory. Copy the content of `.env.template.erb` to `.env` then update the `username` and `password` based on your database credentials. To send a post feedback email to the blog post author, request `SENDGRID_API_KEY` from admin/owner or [create your own SENDGRID_API_KEY](https://docs.sendgrid.com/ui/account-and-settings/api-keys) and [add single sender verification](https://docs.sendgrid.com/ui/sending-email/sender-verification) then update `SENDGRID_FROM_EMAIL` and `SENDGRID_FROM_NAME`\n\nInstall dependencies and setup database\n\n```bash\nbin/setup\n```\n\nRe-enable git hooks _(Run this command only if you've already set up the application prior to the migration from husky to lefthook)_\n\n```bash\ngit config --unset core.hooksPath\n```\n\nRun `lefthook install` to sync the git hooks\n\nPopulate database with sample data\n\n```bash\nbin/rake db:populate_sample_data\n```\n\nStart local web server\n\n```bash\nbin/dev\n```\n\nGo to [http://localhost:3000](http://localhost:3000)\n\n## GitHub Actions, Linting and Security Auditing\n\nGitHub actions are setup to lint, test, and deploy the application.\n\nYou can also run these actions locally before pushing to see if your run is likely to fail. See the following gems / commands for more info.\n\n- [Brakeman](https://brakemanscanner.org/) - Security audit application code\n\n  ```bash\n  bin/brakeman --no-pager\n  ```\n\n- [Brakeman: Ignoring False Positives](https://brakemanscanner.org/docs/ignoring_false_positives) - Creating and Managing an Ignore File\n\n  ```bash\n  bin/brakeman -I --no-pager\n  ```\n\n- [Bundler Audit](https://github.com/rubysec/bundler-audit) - Security audit dependencies\n\n  ```bash\n  bin/bundler-audit --update\n  ```\n\n- [Rubocop Rails Omakase](https://github.com/rails/rubocop-rails-omakase) - Ruby Linter\n\n  ```bash\n  bin/rubocop\n  ```\n\n  **Note:** Some linters like `ESLint`, `Prettier`, etc. will automatically run on `pre-commit` git hook.\n\n## Testing\n\nSetup test database\n\n```bash\nbin/rails db:test:prepare\n```\n\nDefault: Run all spec files (i.e., those matching spec/\\*\\*/\\*\\_spec.rb)\n\n```bash\nbin/rspec\n```\n\nor with `--fail-fast` option to stop running the test suite on the first failed test. You may add a parameter to tell RSpec to stop running the test suite after N failed tests, for example: `--fail-fast=3`\n\n```bash\nbin/rspec --fail-fast\n```\n\nRun all spec files in a single directory (recursively)\n\n```bash\nbin/rspec spec/models\n```\n\nRun a single spec file\n\n```bash\nbin/rspec spec/models/post_spec.rb\n```\n\nRun a single example from a spec file (by line number)\n\n```bash\nbin/rspec spec/models/post_spec.rb:6\n```\n\nUse the plain-English descriptions to generate a report of where the application conforms to (or fails to meet) the spec\n\n```bash\nbin/rspec --format documentation\n```\n\n```bash\nbin/rspec --format documentation spec/models/post_spec.rb\n```\n\nSee all options for running specs\n\n```bash\nbin/rspec --help\n```\n\n## Code Coverage\n\n[Coverage]: https://docs.ruby-lang.org/en/3.3/Coverage.html \"API doc for Ruby's Coverage library\"\n[SimpleCov]: https://github.com/simplecov-ruby/simplecov \"A code coverage analysis tool for Ruby\"\n\n[SimpleCov][SimpleCov] is a code coverage analysis tool for Ruby. It uses [Ruby's built-in Coverage][Coverage] library to\ngather code coverage data, but makes processing its results much easier by providing a clean API to filter, group, merge, format,\nand display those results, giving you a complete code coverage suite that can be set up with just a couple lines of code.\nSimpleCov/Coverage track covered ruby code, gathering coverage for common templating solutions like erb, slim and haml is not supported.\n\nAfter running your tests, open `coverage/index.html` in the browser of your choice. For example, in a Mac Terminal,\nrun the following command from your application's root directory:\n\n```bash\nopen coverage/index.html\n```\n\nin a Debian/Ubuntu Terminal,\n\n```bash\nxdg-open coverage/index.html\n```\n\n**Note:** [This guide](https://dwheeler.com/essays/open-files-urls.html) can help if you're unsure which command your particular\noperating system requires.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinos30%2Fblog-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinos30%2Fblog-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinos30%2Fblog-app/lists"}