{"id":26180350,"url":"https://github.com/ganesh2394/library-management-system","last_synced_at":"2026-04-11T10:32:40.540Z","repository":{"id":272929181,"uuid":"918163494","full_name":"ganesh2394/Library-Management-System","owner":"ganesh2394","description":"Build a system to manage books, authors, and member borrowing. ","archived":false,"fork":false,"pushed_at":"2025-01-21T13:46:41.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T21:55:34.458Z","etag":null,"topics":["database","express-js","git","github","library-management-system","mysql-database","node-js","npm-package","postman-collection","sequelize-orm"],"latest_commit_sha":null,"homepage":"","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/ganesh2394.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":"2025-01-17T11:25:08.000Z","updated_at":"2025-01-22T05:38:16.000Z","dependencies_parsed_at":"2025-01-17T14:27:18.407Z","dependency_job_id":"e4a34aa7-89ac-4394-9c64-a0ffa7686c84","html_url":"https://github.com/ganesh2394/Library-Management-System","commit_stats":null,"previous_names":["ganesh2394/library-management-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ganesh2394/Library-Management-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganesh2394%2FLibrary-Management-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganesh2394%2FLibrary-Management-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganesh2394%2FLibrary-Management-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganesh2394%2FLibrary-Management-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganesh2394","download_url":"https://codeload.github.com/ganesh2394/Library-Management-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganesh2394%2FLibrary-Management-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28000524,"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-24T02:00:07.193Z","response_time":83,"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":["database","express-js","git","github","library-management-system","mysql-database","node-js","npm-package","postman-collection","sequelize-orm"],"created_at":"2025-03-11T21:55:37.029Z","updated_at":"2025-12-24T10:16:01.150Z","avatar_url":"https://github.com/ganesh2394.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Management System\n\n## Description\n\nThis is a Library Management System that allows for the management of books, authors, and members. The system supports functionalities such as adding, updating, deleting books/authors, registering members, borrowing and returning books, and tracking overdue books.\n\nThe **frontend part** of this project is built using **EJS** and **Tailwind CSS**. You can find it here:\n- [Frontend Repository](https://github.com/ganesh2394/Library-Management-System-Frontend)\n---\n\n## Features\n\n- Add, update, and delete books and authors.\n- Register members and allow them to borrow books.\n- Track borrowed books and return deadlines.\n- View overdue books for a specific member.\n\n---\n\n## Tech Stack\n\n- **Backend**: Node.js (Express)\n- **Database**: Sequelize (MySQL)\n- **Testing Tools**: Postman, MySQL Workbench\n- **Version Control**:Git\n\n---\n\n## Prerequisites\n\nBefore running this application, ensure the following software is installed on your system:\n\n- Node.js (v14 or later)\n- MySQL (v8 or later)\n- Postman (for API testing)\n- Git (for version control)\n\n---\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/ganesh2394/Library-Management-System.git\n   cd Library-Management-System\n   ```\n\n2. Install Dependencies : Install all required package using npm\n   ```bash\n   install npm\n   ```\n\n---\n\n## Configure Environment Variables:\n\nCreate a .env file in the root directory and configure the following variables:\n\n- DB_HOST=localhost\n- DB_USER=root\n- DB_PASSWORD=yourpassword\n- DB_NAME=library_db\n\n---\n\n## Database Setup\n\nThe database schema and tables structure are included in the `{docs/database}` folder\n\n### Importing the Database\n\n1. **Create a new database**:\n   In MySQL or your database client, create a new database:\n   ```sql\n   CREATE DATABASE library_db;\n   ```\n2. **Import the SQL Dump Folder**:\n   Import the sql dump files which is provide in the `docs/database` folder using the preferred database client:\n   ```bash\n   mysql -u root -p library_db \u003c docs/database.sql\n   ```\n\n---\n\n## Run the Application :\n\nStart the development server :\n\n```bash\nnpm run dev\n```\n\nThe server will run on http://localhost:3000\n\n---\n\n## API Documentation\n\nThe API documentation for the Library Management System is available as a Postman collection.\n\n### Online API Documentation\n\nAccess the API documentation online: [Postman Documentation](https://documenter.getpostman.com/view/38671941/2sAYQakWbA)\n\n### How to Use the Postman Collection\n\n1. Download the Postman collection file: [Library_API_Postman_Collection.json](/docs/Library%20Management%20System.postman_collection.json)\n2. Open Postman and click on **Import**.\n3. Upload the `Library_API_Postman_Collection.json` file.\n4. Access all the API endpoints and test them.\n\n### API Endpoints\n\n#### Authors\n\n- `GET /api/authors` - Get all authors.\n- `POST /api/authors` - Add a new author.\n- `PUT /api/authors/{id}` - Update an author by ID.\n- `DELETE /api/authors/{id}` - Delete an author by ID.\n- `GET /api/authors/{authorId}/books` - Get all books by a specific author.\n\n#### Books\n\n- `GET /api/books` - Get all books.\n- `POST /api/books` - Add a new book.\n- `PUT /api/books/{id}` - Update a book by ID.\n- `DELETE /api/books/{id}` - Delete a book by ID.\n- `GET /api/books/author/{authorId}` - Get all books by a specific author.\n- `GET /api/books/search` - Search for books.\n\n#### Borrow \u0026 Return\n\n- `POST /api/borrows/borrow` - Borrow a book.\n- `POST /api/borrows/return` - Return a borrowed book.\n- `GET /api/borrows/{memberId}/history` - Get borrowing history of a specific member.\n\n#### Members\n\n- `GET /api/members` - Get all members.\n- `POST /api/members` - Add a new member.\n- `PUT /api/members/{id}` - Update a member by ID.\n- `DELETE /api/members/{id}` - Delete a member by ID.\n- `GET /api/members/{memberId}/borrow-history` - Get borrowing history of a specific member.\n\n---\n\n## Related Projects\nThis is the backend for the Library Management System, which handles API requests for managing books, authors, members, and borrow records.\nThe **frontend part** of this project is built using **EJS** and **Tailwind CSS**. You can find it here:\n- [Frontend Repository](https://github.com/ganesh2394/Library-Management-System-Frontend)\n\n---\n\n## Acknowledgment\n\nThis project was provided by **TRUEiGTECH** as part of an assignment to evaluate my skills and abilities in building a real-world application. The task was designed to assess my understanding of **Node.js**, **Express.js**, **Sequelize ORM**, and **MySQL** as well as my ability to develop efficient and scalable back-end solutions. I appreciate the opportunity to work on this assignment and showcase my technical skills.\n\n---\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganesh2394%2Flibrary-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganesh2394%2Flibrary-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganesh2394%2Flibrary-management-system/lists"}