{"id":17311689,"url":"https://github.com/swanandp/drc-pg-workshop","last_synced_at":"2025-07-03T19:07:45.570Z","repository":{"id":147904150,"uuid":"99779945","full_name":"swanandp/drc-pg-workshop","owner":"swanandp","description":"Support Code and Guides for the Deccan Ruby PostgreSQL workshop","archived":false,"fork":false,"pushed_at":"2017-08-11T07:55:38.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T06:11:14.379Z","etag":null,"topics":["postgresql","rails","ruby","workshop","workshop-materials"],"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/swanandp.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":"2017-08-09T07:46:07.000Z","updated_at":"2017-08-09T08:17:35.000Z","dependencies_parsed_at":"2023-05-27T21:30:36.604Z","dependency_job_id":null,"html_url":"https://github.com/swanandp/drc-pg-workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swanandp/drc-pg-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swanandp%2Fdrc-pg-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swanandp%2Fdrc-pg-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swanandp%2Fdrc-pg-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swanandp%2Fdrc-pg-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swanandp","download_url":"https://codeload.github.com/swanandp/drc-pg-workshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swanandp%2Fdrc-pg-workshop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385761,"owners_count":23458745,"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":["postgresql","rails","ruby","workshop","workshop-materials"],"created_at":"2024-10-15T12:41:11.478Z","updated_at":"2025-07-03T19:07:45.545Z","avatar_url":"https://github.com/swanandp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation and Setup for: What Lies Beneath ( your models )\n\nThis guide will help you install the optimal setup in order to have a productive time at the workshop.  Guide is currently written for Mac OS X, but it easy enough to follow along for any modern Linux distribution as well.\n\n## Requirements\n1. Operating system: Mac OS X or Ubuntu recommended.  Microsoft Windows is _not supported_\n2. Command line: Terminal, iTerm, etc.\n3. Any Ruby version manager that supports `.ruby-version` file.  Recommended: [rbenv](https://github.com/rbenv/rbenv). Other options: [chruby](https://github.com/postmodern/chruby) or [rvm](https://rvm.io)\n4. Ruby 2.3.x\n5. Rails 5.x.x\n6. PostgreSQL 9.5.4 and above\n7. A working PostgreSQL client.\n\t1. Recommend: `psql`, comes bundled with PostgresSQL\n\t2. Other options: `pgcli` , Postico\n8. Git.  Using a git repo to save your work is recommended, revisiting your Git history at a later date is quite valuable.\n9. Your everyday code editor / IDE, configured to be used with Ruby, and Rails.  _We highly recommend that you use your regular setup, in order to avoid any friction with editing._\n\n\n## Installation\n### PostgreSQL\n\n1. Check if you already have PostgreSQL installed.\n\t1. `pg_config --version`. If this errors, you probably don't have PG installed.\n\t2. If it shows a version, you're set. Move on to the next section.  Note: If you PostgreSQL version is older than 9.5.x, you should think about upgrading.  The guides will help with that: [Guide 1](https://keita.blog/2016/01/09/homebrew-and-postgresql-9-5/), [Guide 2](https://collectiveidea.com/blog/archives/2016/01/08/postgresql95-upgrade-with-homebrew)\n2. For a fresh installation, [homebrew](https://brew.sh) is recommended.\n3. `brew update \u0026\u0026 brew install postgresql`\n4. Follow the instructions from `brew install` to initialise a PG database and start the service.  If you're stuck with some error, and Googling around isn't helping, reach out to us.\n5. At this point `psql` should start without errors. And you should be able to run a query like:\n\n```\n# select version();\n\n                                                    version\n----------------------------------------------------------------------------------------------------------------\n PostgreSQL 9.5.6 on x86_64-apple-darwin16.4.0, compiled by Apple LLVM version 8.0.0 (clang-800.0.42.1), 64-bit\n(1 row)\n```\n\n### Ruby Version Manager\n\nFollow the installation instructions from the respective websites:\n\nrbenv: https://github.com/rbenv/rbenv#installation\nchruby: https://github.com/postmodern/chruby#install\nrvm: https://rvm.io/rvm/install\n\n### Ruby\n\n`rbenv install 2.4.1`\n`gem install bundler`\n\n### Rails\n\n1. Fork this Repo to your own Github account.\n2. Clone your repo, by following instructions from GitHub.\n3. `cd drc-pg-workshop`\n4. Check Ruby version: `ruby -v` should show `2.4.1`\n5. `bundle install`\n6. `rails db:setup` for creating databases and running migrations\n\n## Test if everything is working\n`./bin/rake` should work without errors, if it does, you're all set.\n\n### Chat, and further help\n\n[![Join the chat at https://gitter.im/drc-pg-workshop/Lobby](https://badges.gitter.im/drc-pg-workshop/Lobby.svg)](https://gitter.im/drc-pg-workshop/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswanandp%2Fdrc-pg-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswanandp%2Fdrc-pg-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswanandp%2Fdrc-pg-workshop/lists"}