{"id":24185232,"url":"https://github.com/andrijzyn/rubyor_postgresql_test","last_synced_at":"2026-04-30T16:32:16.979Z","repository":{"id":262912994,"uuid":"888757740","full_name":"andrijzyn/RubyOR_PostgreSQL_Test","owner":"andrijzyn","description":"🔻 Working clean RoR project","archived":false,"fork":false,"pushed_at":"2025-01-06T16:00:43.000Z","size":114,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T00:24:54.828Z","etag":null,"topics":["postgresql","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/andrijzyn.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-11-15T00:30:52.000Z","updated_at":"2025-01-05T04:56:53.000Z","dependencies_parsed_at":"2024-11-15T01:24:56.692Z","dependency_job_id":"d36c0239-0826-4ba6-9c40-125e6d955157","html_url":"https://github.com/andrijzyn/RubyOR_PostgreSQL_Test","commit_stats":null,"previous_names":["andrijzyn/rubyor_postgresql_test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrijzyn/RubyOR_PostgreSQL_Test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrijzyn%2FRubyOR_PostgreSQL_Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrijzyn%2FRubyOR_PostgreSQL_Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrijzyn%2FRubyOR_PostgreSQL_Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrijzyn%2FRubyOR_PostgreSQL_Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrijzyn","download_url":"https://codeload.github.com/andrijzyn/RubyOR_PostgreSQL_Test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrijzyn%2FRubyOR_PostgreSQL_Test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276122,"owners_count":23903981,"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"],"created_at":"2025-01-13T11:19:21.305Z","updated_at":"2026-04-30T16:32:11.946Z","avatar_url":"https://github.com/andrijzyn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Setup and Configuration\n\n\n### ⚠️ Important:\n-  **Do not install packages as `root`** - this may cause permissions problems in the IDE.\n-  **It is recommended to run `rails` from `~/bin`** to avoid possible conflicts.\n\n---\n\n### ℹ️ Notes:\n-  If you encounter the same problem when initialising the base project, please create **Issue**. I may have forgotten to specify some details.\n-  Separation of tasks by console:\n-  🟩-**System console** (for example, a terminal outside the project).\n-  🟥-**Project console** (terminal opened in the project root).\n-  🟪-**Postgre console** (terminal opened by sudo -u postgres psql).\n\n---\n\n### 🟩 🛠 Install dependencies:\n\n1. Make sure you have **Node.js** and **npm** installed.\n\n2. To install dependencies, run the command:\n```bash\npnpm install @hotwired/turbo-rails @hotwired/stimulus\n```\n \n3. Install Ruby:\nInstall [rbenv](https://github.com/rbenv/rbenv)\nInstall [ruby-build](https://github.com/rbenv/ruby-build)\n```bash\nrbenv init\nrbenv install 3.3.6\nrbenv global 3.3.6\n```\n\n4. Install [Ruby on Rails](https://github.com/rails/rails)\n\n---\n\n### 🟩 🔧 PostgreSQL Setup:\n\n1. **Install PostgreSQL**:\n\nFor **Arch**:\n```bash\nsudo pacman -S postgresql\n```\nFor **Debian**:\n```bash\nsudo apt install postgresql postgresql-contrib\n```\nFor **macOS** using Homebrew:\n```bash\nbrew install postgresql\n```\n\n2. Start the PostgreSQL service:\n\nFor **Debian**:\n```bash\nsudo systemctl enable postgresql\nsudo service postgresql start\n```\nFor **macOS** using Homebrew:\n```bash\nbrew services start postgresql\n```\n    \n---\n\n### 🌱 Database Setup\n\nTo set up the PostgreSQL database for the project, follow the steps below:\n1. Create the Database\n\n- 🟥 Create a database using the command:\n```bash\nrails db:create\nrails db:migrate\n```\n- 🟩 Open the postgres console:\n```bash\nsudo -u postgres psql\n```\n- 🟪 Create a new PostgreSQL user (if necessary):\nIt is better for {username} to use the vlast name on the system\n```bash\nCREATE ROLE {username} WITH LOGIN PASSWORD '{password}';\n```\n- 🟪 Grant permissions to connect and use the database :\n```bash\nGRANT CONNECT ON DATABASE {database_name} TO {username};\nGRANT USAGE ON SCHEMA public TO {username};\n```\n- 🟪 Grant permissions to create and modify tables in the schema :\n```bash\nGRANT CREATE ON SCHEMA public TO {username};\nGRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO {username};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrijzyn%2Frubyor_postgresql_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrijzyn%2Frubyor_postgresql_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrijzyn%2Frubyor_postgresql_test/lists"}