{"id":25846249,"url":"https://github.com/dcgadmin/plpgsql-deepdive","last_synced_at":"2025-03-01T09:22:18.246Z","repository":{"id":279931114,"uuid":"940476414","full_name":"dcgadmin/plpgsql-deepdive","owner":"dcgadmin","description":"PL/pgSQL Exercise to solve challenges encounter in Application.","archived":false,"fork":false,"pushed_at":"2025-02-28T09:41:22.000Z","size":12158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T15:37:21.417Z","etag":null,"topics":["development","plpgsql","postgres"],"latest_commit_sha":null,"homepage":"https://www.databasegyaan.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcgadmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-28T08:43:31.000Z","updated_at":"2025-02-28T09:41:25.000Z","dependencies_parsed_at":"2025-02-28T15:49:03.099Z","dependency_job_id":null,"html_url":"https://github.com/dcgadmin/plpgsql-deepdive","commit_stats":null,"previous_names":["dcgadmin/plpgsql-deepdive"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcgadmin%2Fplpgsql-deepdive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcgadmin%2Fplpgsql-deepdive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcgadmin%2Fplpgsql-deepdive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcgadmin%2Fplpgsql-deepdive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcgadmin","download_url":"https://codeload.github.com/dcgadmin/plpgsql-deepdive/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241343558,"owners_count":19947412,"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":["development","plpgsql","postgres"],"created_at":"2025-03-01T09:22:17.601Z","updated_at":"2025-03-01T09:22:18.198Z","avatar_url":"https://github.com/dcgadmin.png","language":"Python","readme":"# plpgsql-deepdive\nPL/pgSQL Exercise to solve challenges encounter in Application.\n\n## Prerequisites\nEnsure you have the following installed on your system:\n\n- **Python** (version 3.11.4 or later) → [Download here](https://www.python.org/downloads/)\n- **PostgreSQL**  → [Download here](https://www.postgresql.org/download/)\n\n---\n\n## Installation Guide\n\n### 1️⃣ Clone the Repository\nIf using Git, open a terminal or command prompt and run:\n\n```sh\ngit clone https://github.com/dcgadmin/plpgsql-deepdive.git\ncd plpgsql-deepdive\n```\n\nIf not using Git, manually download and extract the project files.\n\n### 2️⃣ Create a Virtual Environment (Recommended)\nTo avoid conflicts with system packages, create a virtual environment:\n\n```sh\npython -m venv venv\n```\n\nActivate the virtual environment:\n\n- **macOS/Linux**:\n  ```sh\n  source venv/bin/activate\n  ```\n- **Windows**:\n  ```sh\n  venv\\Scripts\\activate\n  ```\n\n### 3️⃣ Install Dependencies\nRun the following command to install required packages:\n\n```sh\npip install -r requirements.txt\n```\n\n---\n\n## Configuration\n\n### 4️⃣ Set Up Environment Variables\nAdd database credentials in  `.env` file in the project root:\n\n```ini\nDB_HOST=your_host\nDB_PORT=your_port\nDB_NAME=your_db_name\nDB_USER=your_user\nDB_PASSWORD=your_password\n```\n\n---\n\n## Running the Application\n\n### 5️⃣ Start the Streamlit App\nExecute the following command:\n\n```sh\nstreamlit run app/main.py\n```\n\nThis will start a local development server and provide a URL (e.g., `http://localhost:8501`) where you can access the app in your browser.\n\n---\n\n## Usage\n- Navigate through the **sidebar** to access different pages:\n  - **Home**: Overview of the application.\n  - **Booking Summary**: Displays booking details for selected facilities.\n  - **Search**: Allows searching through facility data.\n- Select a facility from the sidebar dropdown to view usage hours and booking summaries.\n- Interact with the data displayed using Streamlit’s built-in widgets.\n\n---\n\n## Troubleshooting\n\n### Issue: Dependencies not installing?\n- Ensure you're using the correct Python version:\n  ```sh\n  python --version\n  ```\n- Try upgrading pip:\n  ```sh\n  pip install --upgrade pip\n  ```\n\n### Issue: Database connection errors?\n- Check your `.env` file for correct database credentials.\n- Ensure the database server is running.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcgadmin%2Fplpgsql-deepdive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcgadmin%2Fplpgsql-deepdive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcgadmin%2Fplpgsql-deepdive/lists"}