{"id":21246747,"url":"https://github.com/lechemi/library","last_synced_at":"2026-04-16T19:32:07.213Z","repository":{"id":258573456,"uuid":"868852118","full_name":"Lechemi/library","owner":"Lechemi","description":"Laboratory project for the Databases course at the University of Milan.","archived":false,"fork":false,"pushed_at":"2025-02-09T14:32:51.000Z","size":892,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T15:31:30.471Z","etag":null,"topics":["database","php","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Lechemi.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-10-07T09:48:21.000Z","updated_at":"2025-02-09T14:32:55.000Z","dependencies_parsed_at":"2024-10-19T16:34:16.807Z","dependency_job_id":"289f7871-82a5-4e40-8ee9-0cafcff1bcc6","html_url":"https://github.com/Lechemi/library","commit_stats":null,"previous_names":["lechemi/library"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lechemi%2Flibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lechemi%2Flibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lechemi%2Flibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lechemi%2Flibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lechemi","download_url":"https://codeload.github.com/Lechemi/library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685526,"owners_count":20330980,"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":["database","php","postgresql"],"created_at":"2024-11-21T02:04:43.144Z","updated_at":"2025-12-29T19:34:23.530Z","avatar_url":"https://github.com/Lechemi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library management system\n\nThis project is a library management system that integrates a PostgreSQL database and a PHP-based web application designed for both librarians and patrons.\n\nThe documentation, which includes the project's specifications, is available [here](https://midi-file-e7c.notion.site/Library-management-system-16bc3dc3fb3780d8bf56c92189c1079b).\n\n## Running locally\n\n### 0. Requirements\n1. **PHP**: version 8.3 or higher.\n2. **PostgreSQL**: version 17 or higher.\n3. **Web Server** of choice (PHP 5.4 and later have a built-in web server).\n\n### 1. Clone the repository\n```zsh\ngit clone https://github.com/lechemi/library.git\ncd library\n```\n\n### **2. Set up the database**\n1. Ensure that your PostgreSQL server is running.\n\n2. Create a new database to hold the library data:\n   ```zsh\n   createdb -U postgres library\n   ```\n\n3. Restore the database dump:\n   ```zsh\n   psql -U postgres -d library -f sql/dump/dump.sql\n   ```\n\n4. Log into the database:\n   ```zsh\n   psql -U postgres -d library\n   ```\n\n5. Set the search path:\n   ```zsh\n   SET search_path TO library;\n   ```\n\n6. Check if the tables and data have been successfully restored:\n   ```zsh\n   \\dt\n   ```\n\n### 3. Configure database connection details\nEdit `webapp/conf/conf.php` to set the database connection details.\n\n### 4. Run the web app\n(example with PHP built-in server).\n\nWhile being in the `webapp` folder, run:\n```zsh\nphp -S 127.0.0.1:8000\n```\nThen, navigate to http://127.0.0.1:8000/. The app should be up and running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flechemi%2Flibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flechemi%2Flibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flechemi%2Flibrary/lists"}