{"id":18398658,"url":"https://github.com/mongodb-developer/library-management-system","last_synced_at":"2025-04-04T19:09:12.103Z","repository":{"id":196533060,"uuid":"675395880","full_name":"mongodb-developer/library-management-system","owner":"mongodb-developer","description":"Sample App used in the hands-on labs during Developer Days","archived":false,"fork":false,"pushed_at":"2025-03-23T21:30:22.000Z","size":837,"stargazers_count":48,"open_issues_count":0,"forks_count":145,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T18:13:13.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mongodb-developer.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":"2023-08-06T19:15:26.000Z","updated_at":"2025-03-25T22:34:45.000Z","dependencies_parsed_at":"2023-09-26T01:48:37.592Z","dependency_job_id":"ea18227e-cbb6-4ffc-a661-d67ab7dcf13b","html_url":"https://github.com/mongodb-developer/library-management-system","commit_stats":null,"previous_names":["mongodb-developer/library-management-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Flibrary-management-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Flibrary-management-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Flibrary-management-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Flibrary-management-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/library-management-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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":[],"created_at":"2024-11-06T02:23:47.860Z","updated_at":"2025-04-04T19:09:12.074Z","avatar_url":"https://github.com/mongodb-developer.png","language":"TypeScript","readme":"# Library Management System\n\nThis is a library management system built with the MEAN (MongoDB, Express, Angular, Node.js) stack. \n\n## Running the project\n\n1. Clone the repository.\n\n    ```\n    git clone git@github.com:mongodb-developer/library-management-system.git library\n    ```\n\n1. Install the dependencies in the root level of the project.\n\n    **library/**\n    ```\n    npm install\n    ```\n\n1.  Set your [Atlas URI connection string](https://docs.atlas.mongodb.com/getting-started/), database name and server port in `server/.env`. Make sure you replace the username and password placeholders with your own credentials.\n\n    **library/server/.env**\n    ```\n    PORT=\"5000\"\n    DATABASE_URI=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@m0.kwqkoewm.mongodb.net\"\n    DATABASE_NAME=\"library\"\n    SECRET=\"secret\"\n    ```\n\n\n1. Start the **server** application.\n\n    **library/server/**\n    ```\n    npm install \u0026\u0026 npm start\n    ```\n\n1. Open a new terminal window and start the **client** application.\n\n    **library/client/**\n    ```\n    npm install \u0026\u0026 npm start\n    ```\n\n1. When both applications are built and running, open your browser on http://localhost:4200/.\n\n## Executing the tests\n\nCurrently, the project has only API tests implemented with [`supertest`](https://www.npmjs.com/package/supertest) and [`mocha`](https://www.npmjs.com/package/mocha). To execute them, navigate to the `server/` directory and run:\n\n**library/server/**\n```\nnpm test\n```\n\n## Pre-commit hook\n\nThe project utilizes [Husky](https://typicode.github.io/husky/) to execute actions before every commit. The pre-commit hook, located in [.husky/pre-commit](./.husky/pre-commit), lints the code and runs the API tests.\n\nUse at your own risk; not a supported MongoDB product\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Flibrary-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Flibrary-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Flibrary-management-system/lists"}