{"id":30429756,"url":"https://github.com/thiagokimo/bible_service","last_synced_at":"2025-08-22T17:36:41.360Z","repository":{"id":5383976,"uuid":"6571913","full_name":"thiagokimo/bible_service","owner":"thiagokimo","description":"A simple bible content provider","archived":false,"fork":false,"pushed_at":"2013-08-13T12:02:18.000Z","size":1020,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-01T12:04:27.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thiagokimo.github.com/bible_service/","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/thiagokimo.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":"2012-11-07T00:15:44.000Z","updated_at":"2015-06-24T01:47:58.000Z","dependencies_parsed_at":"2022-07-06T13:52:53.438Z","dependency_job_id":null,"html_url":"https://github.com/thiagokimo/bible_service","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/thiagokimo/bible_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2Fbible_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2Fbible_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2Fbible_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2Fbible_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagokimo","download_url":"https://codeload.github.com/thiagokimo/bible_service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2Fbible_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271673564,"owners_count":24800717,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-22T17:36:31.431Z","updated_at":"2025-08-22T17:36:41.345Z","avatar_url":"https://github.com/thiagokimo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Bible Service\n![pictureGallery](http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2011/2/11/1297427584196/Bible-007.jpg \"bible\")\n=============\n\n#Description\nA RoR application that provides content from the bible. The content collected was the \u003cb\u003eNova Versão Internacional\u003c/b\u003e bible\nin brazilian portuguese. It was scrapped from \u003ca\u003ehttp://www.bible.com/\u003c/a\u003e.\n\n##Setup\n\nAssuming that you have Ruby, Rails and MySQL properly installed and configured in your machine:\n\n1. \u003cb\u003eClone this repository to your machine\u003c/b\u003e:\n  \n  \u003e `git clone https://github.com/thiagokimo/bible_service.git`\n\n2. \u003cb\u003eInside the project directory\u003c/b\u003e:\n  \n  \u003e `bundle install`\n\n3. \u003cb\u003eCreate and migrate the databases\u003c/b\u003e:\n  \n  \u003e `rake db:create`\u003cbr\u003e\n  \u003e `rake db:migrate`\n\n4. \u003cb\u003eIn order to populate the database, run the following task\u003c/b\u003e:\n  \n  \u003e `rake bible:get_bible`\u003cbr\u003e\n\n##How it works\nThere are 3 main entities:\n\n* Book - Stores the book's name and link.\n* Chapter - Stores the chapter's number and link.\n* Verse - Stores the verses' number and its content.\n\nThe application has a crawler that populates the database parsing each html page, scrapping the content related to each\nentitie. All scrap processes were built as rake tasks and can be triggered anytime. More information in `lib/tasks/bible.com.rake`\n\nThe service exports the information as json by HTTP requests. All routes are nested as \u003ci\u003eBook\u003c/i\u003e, \u003ci\u003eChapter\u003c/i\u003e and \u003ci\u003eVerse\u003c/i\u003e\nrespectively. The regular expressions to retrieve each entitie information corresponds to its own rake route:\n\n* \u003cb\u003eBook:\u003c/b\u003e - \"/books\"\n* \u003cb\u003eChapter:\u003c/b\u003e - \"books/\u003cb\u003e\u003ci\u003ebook_id\u003c/i\u003e\u003c/b\u003e/chapters\"\n* \u003cb\u003eVerse:\u003c/b\u003e - \"books/\u003cb\u003e\u003ci\u003ebook_id\u003c/i\u003e\u003c/b\u003e/chapters/\u003cb\u003e\u003ci\u003echapter_id\u003c/i\u003e\u003c/b\u003e/verses\"\n\n##Usage\nTo get the information, access the URL's according to its entitie.\nInside the project's folder, start the server with\n\n  \u003e `rails s`\u003cbr\u003e\n\nand try the following examples:\n\n* \u003cb\u003eWhole bible:\u003c/b\u003e - http://localhost:3000/books.json\n\n* \u003cb\u003e All chapters from the book Exodus\u003c/b\u003e - http://localhost:3000/books/2/chapters.json\n\n* \u003cb\u003eAll verses from the first chapter of Genesis:\u003c/b\u003e - http://localhost:3000/books/1/chapters/1/verses.json\n\n## Future ideas and \"to do\"s'\n\n1. Create tasks to collect information from other bibles\n2. Change from Rails to Sinatra because its lightier ;)\n3. Separate the crawler as a GEM, which will allow us to integrate our bible in other frameworks.\n4. Start writting the commit messages in English, LOL\n\n##How to contribute\nPlease ensure that you provide appropriate test coverage and ensure the documentation is up-to-date. It is encouraged that you perform changes in a clean topic branch rather than a master and that you create a pull request for them. This will facilitate discussion and revision.\n\nPlease be clean, keep your commits atomic and with the smallest possible logical change. This will increase the likelihood of your submission to be used.\n\n###Bug reports\n\nIf you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help us fixing the possible bug.\n\nhttps://github.com/thiagokimo/bible_service/issues\n\n##License\nCopyright (c) 2012 Thiago Moreira Rocha.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to use, copy and modify copies of the Software, subject\nto the following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Fbible_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagokimo%2Fbible_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Fbible_service/lists"}