{"id":16086151,"url":"https://github.com/zw963/marketbet_crawler","last_synced_at":"2025-03-18T06:30:42.491Z","repository":{"id":147696491,"uuid":"368399572","full_name":"zw963/marketbet_crawler","owner":"zw963","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-11T18:35:47.000Z","size":952,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T07:49:30.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zw963.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-18T04:24:29.000Z","updated_at":"2025-02-11T18:35:51.000Z","dependencies_parsed_at":"2024-07-26T04:28:49.583Z","dependency_job_id":"2979fb41-7801-4881-8f0c-1f6d49bfd7e4","html_url":"https://github.com/zw963/marketbet_crawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fmarketbet_crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fmarketbet_crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fmarketbet_crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fmarketbet_crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/marketbet_crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243906444,"owners_count":20367030,"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":[],"created_at":"2024-10-09T13:10:45.585Z","updated_at":"2025-03-18T06:30:41.998Z","avatar_url":"https://github.com/zw963.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## An attempt to build a project using roda and sequel toolkit, Simplicity, less gems as the first consideration.\n\nFor scrap the public stocks data in marketbet.com, and show them.\n\n## Technology stack\n\n[Roda](https://github.com/jeremyevans/roda) with plugins.\n\n[Sequel](https://github.com/jeremyevans/sequel) with plugins.\n\n[hot_reloader](https://github.com/zw963/hot_reloader)\n\n[puma](https://github.com/puma/puma)\n\n[minitest](https://github.com/seattlerb/minitest), ruby builtin.\n\n[rack-test](https://github.com/rack/rack-test)\n\n\u003c!-- [ferrum](https://github.com/rubycdp/ferrum), for used with chrome headless. --\u003e\n\n## Folder structure\n\nThis project was adoption some devise from [roda adviced conventions](https://github.com/jeremyevans/roda/blob/master/doc/conventions.rdoc) partially, but not following it completely.\n\n### config/environment.rb\nthis is the start point if you want start up app entirely as does like `rails c` in rails.\nwe adoption this filename because it more conveniently follow rails entry convertion.\n\ne.g. you can add `require_relative 'config/environment'` into PROJECT_ROOT/.pryrc.\n\nthen run `pry` to start it.\n\nwe provide a conveniently command for start our app with irb too, live in `bin/irb`.\n\n### config/application.rb\n\nIt is the place application config live, `config/environment.rb` require it, it require `config/model`.\n\nWith whatever you want put here for application specified config.\n\n### config/models.rb\n\nThis is the place Sequel(ORM) config live, it require `config/db.rb` which create \na new DB connection when start up, you can add whatever Sequel specified config here.\n\nWhen run sequel rake tasks(e.g. rake db:migrate) defined in lib/tasks/sequel.rake, \nthose task only require this file instead of require app entirely.\n\nthere is a command named `bin/db_console`, it require this file only too, with this, \nyou can play with all models, but not need load app entirely.\n\n### config/db.rb\n\nCreate Sequel db connection, we require this in test/test_helper, for check if current migration is latest.\n\n### config/hot_reloader.rb\n\nRequire by others components for support auto reloader(development mode) and eagerload(in production).\n\n### Rakefile, lib/tasks/sequel.rake\n\n1. Add tasks for run tests in test/ folder. just run `rake` or `rake test`.\n2. Add tasks for run specs in spec/ folder. run `rake spec`.\n3. Add tasks for run sequel db tasks,  e.g. `rake db:migrate`\n\n## How to start app.\n\nAll useful environment variable set in `Procfile.options`, you can override all of them with\n\n   ```sh\n   export DEVELOPMENT_DATABASE_URL=\"sqlite://db/files/marketbet_crawler_development.db\"\n   export TEST_DATABASE_URL=\"sqlite://db/files/marketbet_crawler_test.db\"\n   export DATABASE_URL=\"sqlite://db/files/marketbet_crawler_production.db\"\n   export APP_SESSION_SECRET=\"909f017cc94c96f8a1aff843d95920485376f4c997143cc3c39ca945c883ec88e310a2177a69b8b714d22af1b5fd7864833568b6bf93fc3bc811bcf6e112\"\n\n\nrun `rake db:create`\n\nrun `rake db:migrate`\n\nrun `bundle exec puma` to start app. you can start it with `procodile start -d` if use it.\n\nvisit '127.0.0.1:9292'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fmarketbet_crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fmarketbet_crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fmarketbet_crawler/lists"}