{"id":15151190,"url":"https://github.com/thoughtscript/rrr_2024","last_synced_at":"2026-01-20T21:33:27.827Z","repository":{"id":247159696,"uuid":"818825868","full_name":"Thoughtscript/rrr_2024","owner":"Thoughtscript","description":"Ruby, Rails, and React review","archived":false,"fork":false,"pushed_at":"2025-01-01T19:09:36.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T12:24:24.812Z","etag":null,"topics":["docker","docker-compose","postgres","rails","react","ruby"],"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/Thoughtscript.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":"2024-06-23T01:36:34.000Z","updated_at":"2025-01-01T19:09:40.000Z","dependencies_parsed_at":"2024-07-07T01:46:30.853Z","dependency_job_id":"0483ca5d-0f56-4e1d-aedd-fe66278f019b","html_url":"https://github.com/Thoughtscript/rrr_2024","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"09c1818b5ec963cf00dd2c1a0fe90a2d409cd3d3"},"previous_names":["thoughtscript/rrr_2024"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frrr_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frrr_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frrr_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Frrr_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/rrr_2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247623006,"owners_count":20968574,"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","docker-compose","postgres","rails","react","ruby"],"created_at":"2024-09-26T15:00:52.701Z","updated_at":"2026-01-20T21:33:27.814Z","avatar_url":"https://github.com/Thoughtscript.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rrr_2024\r\n\r\n[![](https://img.shields.io/badge/React-18.3.1-orange.svg)](https://reactjs.org) [![](https://img.shields.io/badge/parcel-2.15.1-royalblue.svg)](https://parceljs.org/) [![](https://img.shields.io/badge/Node.js-23.11.1-yellowgreen.svg)](https://nodejs.org/en/) [![](https://img.shields.io/badge/Ruby-3.3.3-red.svg)](https://www.ruby-lang.org/en/) [![](https://img.shields.io/badge/Rails-7.1.3.4-red.svg)](https://rubyonrails.org/) [![](https://img.shields.io/badge/Docker-blue.svg)](https://www.docker.com/) [![](https://img.shields.io/badge/Postgres-16.2-lightblue.svg)](https://hub.docker.com/_/postgres)\r\n\r\n## Local Setup\r\n\r\nI use Ruby on both Mac and on **Windows 11** (currently build `22631.3737` as of **6.24.2024**). \r\n\r\nI performed the following to uprade my local Windows Ruby installation (from `3.1.2p20` and `Rails 7.0.3.1`) to the versions specified above:\r\n\r\n1. **Note:** I install some development tools on my local drive `C:` but do most work on another drive. Make sure to hunt down the correct drive and `C:\\Users` directory!\r\n2. I performed a clean install of `Ruby 3.3.3.1` using the recommended [Windows installer](https://www.ruby-lang.org/en/downloads/) (which differs quite a bit from `brew` based installations). (Thankfully, the **Ruby Installer** has all `make` dependencies rolled into it vastly simplifying its setup!)\r\n3. Make sure to wipe the directories `C:\\msys64` by manually removing the directory (if it lingers) using the **Settings \u003e Apps \u003e Installed apps** Uninstaller. (If it still persists use a force delete like [CCleaner](https://www.ccleaner.com/) and carefully purge the **Windows Registery** using the **Registery Cleaner**!) \r\n4. That'll allow you to cleanly install `MSYS2` again (I ran into issues after installing `ruby` with `rails`). I used settings `1,2,3` and all succeeded after wiping any lingering dependencies per the above.\r\n5. `ruby --version` then `gem update` lastly `gem install rails`. Those should all succeed as expected.\r\n6. I noticed that Rails doesn't populate the correct `bindir` and will complain. It'll say something like: `/c/Users/adami/AppData/Local/Microsoft/WindowsApps/rails: line 6:`. Surprisingly, this occurred after updating my **System \u003e Environment Variable** `Path`\r\n   * The `rails` file was found here: `C:\\Users\\\u003cMY_USER\u003e\\AppData\\Local\\Microsoft\\WindowsApps`\r\n   * The `ruby` install was here: `C:\\Ruby33-x64`\r\n7. I fixed this using the absolute drive path (per the above) on line `6`:\r\n    ```plaintext\r\n    =begin\r\n    bindir=\"/C/Ruby33-x64/bin\"\r\n    exec \"$bindir/ruby\" \"-x\" \"$0\" \"$@\"\r\n    =end\r\n    ```\r\n    That way `rails` can be called and executed on drive `G:`\r\n8. I was then able to confirm `rails --version`:\r\n\r\n    ```bash\r\n    $ rails --version\r\n    Rails 7.1.3.4\r\n    ```\r\n    and initialize the contents of [/rails//web](/rails//web) with the correctly updated version:\r\n\r\n    ```bash\r\n    rails new web\r\n    # from within the /rails directory within this repo\r\n    ```\r\n## Use\r\n\r\n```bash\r\ndocker-compose up\r\n\r\n# If using: Docker Compose Engine V2\r\ndocker compose up \r\n```\r\n\r\n1. http://localhost:1234\r\n2. http://localhost:3000/rails/info/routes\r\n3. [API Endpoints](test_curl.sh)\r\n\r\n## Notes\r\n\r\n1. May need to also perform the above with `bundle` locally on **Windows 11**.\r\n2. The default database in `postgres`.\r\n3. http://localhost:3000/ will display the Rails default app page.\r\n4. Run `rails new project` after an initial commit has been created in the parent directory - it'll cause commit issues otherwise since `rails` initializes a `.git` history.\r\n\r\n## Resources and Links\r\n\r\n1. https://blog.eq8.eu/til/ruby-logs-and-puts-not-shown-in-docker-container-logs.html\r\n2. https://www.rubyguides.com/2019/04/rails-render/\r\n3. https://www.stackhawk.com/blog/rails-cors-guide/\r\n4. https://www.codegram.com/blog/routing-in-rails/\r\n5. https://guides.rubyonrails.org/routing.html\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Frrr_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Frrr_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Frrr_2024/lists"}