{"id":18715334,"url":"https://github.com/mohamedaemara/library-management-system-api","last_synced_at":"2026-04-12T05:34:02.833Z","repository":{"id":220881497,"uuid":"752794294","full_name":"MohamedAEmara/Library-Management-System-API","owner":"MohamedAEmara","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-17T13:08:50.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T11:45:56.723Z","etag":null,"topics":["backend","expressjs","nodejs","potgresql","rest-api"],"latest_commit_sha":null,"homepage":"https://documenter.getpostman.com/view/29997574/2s9Yyy7yKH","language":"JavaScript","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/MohamedAEmara.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}},"created_at":"2024-02-04T20:19:38.000Z","updated_at":"2024-04-21T11:46:38.000Z","dependencies_parsed_at":"2024-03-17T14:24:43.516Z","dependency_job_id":"32569970-b99c-4cba-a5da-8affc15b537a","html_url":"https://github.com/MohamedAEmara/Library-Management-System-API","commit_stats":null,"previous_names":["mohamedaemara/library-management-system-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MohamedAEmara/Library-Management-System-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAEmara%2FLibrary-Management-System-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAEmara%2FLibrary-Management-System-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAEmara%2FLibrary-Management-System-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAEmara%2FLibrary-Management-System-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohamedAEmara","download_url":"https://codeload.github.com/MohamedAEmara/Library-Management-System-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAEmara%2FLibrary-Management-System-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28133801,"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","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backend","expressjs","nodejs","potgresql","rest-api"],"created_at":"2024-11-07T13:08:25.667Z","updated_at":"2025-12-30T23:04:49.592Z","avatar_url":"https://github.com/MohamedAEmara.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Management System\n\n## Overview\n\nLibrary Management System is an API that allows users to create, delete, update, read books. It also provides CRUD operations for Borrowers.\nUsers can borrow a book and keep track of all valid copies of books, get all borrowings and dueDates. \n\n[![technologies](https://skillicons.dev/icons?i=nodejs,js,express,prisma,postgresql,git,github,postman)](#backend)\n\n## Table of Contents\n\n- [Library Management System API](#library-management-system)\n  - [Overview](#overview)\n  - [Table of Contents](#table-of-contents)\n  - [Schema Diagram for DB](#schema-diagram-for-db)\n  - [Getting Started](#getting-started)\n    - [Prerequisites](#prerequisites)\n    - [Installation](#installation)\n  - [Endpoints](#endpoints)\n  - [Technology Stack](#technology-stack)\n      - [Backend](#backend)\n      - [Documentation](#documentation)\n      - [Deployment](#deployment)\n      - [Version Control](#version-control)\n  - [How to Contribute](#how-to-contribute)\n\n\n## Schema Diagram for DB\n![schema](docs/DB_schema.png)\n## Getting Started\n\n### Prerequisites\n\nBefore getting started, Ensure you have installed the following:\n\n- Node.js and npm\n- PostgreSql\n\n### Installation\n\n1. Clone the repository: `$ git clone git@github.com:MohamedAEmara/Library-Management-System-API.git`\n2. Install dependencies: `$ npm install`\n3. Configure environment variables: Create a `.env` file in the root directory.\n   - Copy [.env.example](.env.example) content to `.env` file\n   - Add values for environment variables\n     \u003e you can set `DATABASE_URL` by the same like this format:\n     \u003e `postgresql://USER:PASSWORD@HOST:PORT/DATABASE`\n4. Migrate prisma schema to the db by running these commands:\n   ```bash\n       $ npx prisma generate\n       $ npx prisma migrate dev --name init\n   ```\n\n## Endpoints\n\nYou can check endpoints \u0026 documentation on Postman from [here](https://documenter.getpostman.com/view/29997574/2s9Yyy7yKH)\n\n## Technology Stack\n\nThe **Library Management System API** uses the following technologies and tools:\n\n#### Backend\n\n- **Node.js:** The server-side runtime environment for executing JavaScript code.\n- **Express.js:** A minimal and flexible Node.js web application framework for building robust APIs.\n- **PostgreSQL:** A powerful open-source relational database used for storing books and borrowers.\n- **Prisma:** A modern database toolkit and ORM for Node.js and TypeScript.\n\n\n#### Documentation\n\n- **Postman:** Used to provide a collection for API requests.\n\n#### Deployment\n\n- **Render:** A cloud platform for hosting and deploying web applications.\n- You can try API endpoints on this link: [Library Management System](https://library-management-system-api-b8y4.onrender.com/api/v1/book)\n\n#### Version Control\n\n- **Git:** A distributed version control system.\n- **GitHub:** A web-based platform for version control and collaboration.\n\n## How to Contribute\n\nIf you'd like to contribute to the project or have suggestions for improvement, please do not hesitate to make pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedaemara%2Flibrary-management-system-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedaemara%2Flibrary-management-system-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedaemara%2Flibrary-management-system-api/lists"}