{"id":25845825,"url":"https://github.com/olerichter00/contentful-api-integration","last_synced_at":"2026-05-06T00:31:58.428Z","repository":{"id":40074266,"uuid":"273724810","full_name":"olerichter00/contentful-api-integration","owner":"olerichter00","description":"A contentful API integration showcase (Ruby on Rails).","archived":false,"fork":false,"pushed_at":"2023-01-19T19:31:49.000Z","size":193,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-06T13:17:04.972Z","etag":null,"topics":["docker","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/olerichter00.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":"2020-06-20T14:35:01.000Z","updated_at":"2020-12-13T08:44:33.000Z","dependencies_parsed_at":"2023-02-11T18:40:14.751Z","dependency_job_id":null,"html_url":"https://github.com/olerichter00/contentful-api-integration","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olerichter00%2Fcontentful-api-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olerichter00%2Fcontentful-api-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olerichter00%2Fcontentful-api-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olerichter00%2Fcontentful-api-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olerichter00","download_url":"https://codeload.github.com/olerichter00/contentful-api-integration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241340706,"owners_count":19947095,"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":["docker","rails","ruby"],"created_at":"2025-03-01T08:31:07.299Z","updated_at":"2026-05-06T00:31:58.376Z","avatar_url":"https://github.com/olerichter00.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contentful API integration\n\nThis is an example Contentful API integration with Ruby on Rails using the [Contentful Models Gem](https://github.com/contentful/contentful_model).\n\n**Features:**\n\n- Contentful API integration\n- 100% test coverage\n- 100% lighthouse score (Accessibility and SEO)\n- Page title per recipe\n- Caching with Redis in production\n\n## Run locally\n\nMake sure Ruby is installed, then run `bundle install` to install the dependencies and provide environment variables through a `.env` file (see `.env.example`) or manually.\n\nTo run the application locally, run `rails s`.\n\nWhen the app is running you can see an overview of all recipes at [http://localhost:3000](http://localhost:3000) or [http://localhost:3000/recipes](http://localhost:3000/recipes).\n\n**Using Docker**\n\nAlternatively you can use docker-compose by running `docker-compose up` (you might need to set RAILS_ENV=development in the `.env` file) which will run the application in a docker container or you can build and run a docker container manually with `docker build -t marley-spoon-recipes .` and `docker run --publish 3000:3000 --env-file=./.env marley-spoon-recipes`.\n\n## Test\n\nRun `rspec` to run the tests.\n\n**Using Docker**\n\nAlternatively you can use docker-compose to run the tests in a docker container with `docker-compose run -e \"RAILS_ENV=test\" web bundle exec rspec`.\n\n### Test Coverage\n\nTest coverage is generated with [Simplecov](https://github.com/colszowka/simplecov) after every test run and can be found in the folder `/coverage`.\n\n## Linter\n\nRun `rubocop` for static code analysis and formatting.\n\n## Next Steps / Out of Scope\n\n- **Pagination:** Depending on the length of the recipe list, pagination may be necessary. Most pagination gems won't work out of the box without active record though.\n- **Caching:** Using updated_at in the cache key still calls the Contentful API. It should be possible to invalidate the cache via a webhook after updating content on Contentful.\n- **Styling:** Styling is still pretty basic. Improvements to make the app more mobile friendly could be made (e.g. responsive images with srcset or webp images).\n- **Markdown:** Depending on the specification and content in the recipe description, the markdown parser could be adjusted (e.g. embedding videos).\n- **Localization:** Depending on the available locales for the content on contentful localization could be used for the queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folerichter00%2Fcontentful-api-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folerichter00%2Fcontentful-api-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folerichter00%2Fcontentful-api-integration/lists"}