{"id":15034422,"url":"https://github.com/mdn/express-locallibrary-tutorial","last_synced_at":"2025-05-14T08:09:21.160Z","repository":{"id":14804189,"uuid":"76532420","full_name":"mdn/express-locallibrary-tutorial","owner":"mdn","description":"Local Library website written in NodeJS/Express; example for the MDN server-side development NodeJS module: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs.","archived":false,"fork":false,"pushed_at":"2025-03-21T01:07:19.000Z","size":674,"stargazers_count":1246,"open_issues_count":0,"forks_count":690,"subscribers_count":45,"default_branch":"main","last_synced_at":"2025-04-11T22:19:48.282Z","etag":null,"topics":["demo","example","express","nodejs","webapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-15T06:55:35.000Z","updated_at":"2025-04-08T13:47:15.000Z","dependencies_parsed_at":"2024-01-11T11:59:22.048Z","dependency_job_id":"5a7b7663-2a29-433d-9d18-8b2dcfdf833d","html_url":"https://github.com/mdn/express-locallibrary-tutorial","commit_stats":{"total_commits":274,"total_committers":28,"mean_commits":9.785714285714286,"dds":0.5875912408759124,"last_synced_commit":"627d82f12a0c5e768dc4260594835f6168fd310f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fexpress-locallibrary-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fexpress-locallibrary-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fexpress-locallibrary-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdn%2Fexpress-locallibrary-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdn","download_url":"https://codeload.github.com/mdn/express-locallibrary-tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101558,"owners_count":22014908,"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":["demo","example","express","nodejs","webapp"],"created_at":"2024-09-24T20:25:00.052Z","updated_at":"2025-05-14T08:09:16.152Z","avatar_url":"https://github.com/mdn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-locallibrary-tutorial\n\nTutorial \"Local Library\" website written in in Node/Express.\n\n---\n\nThis web application creates an online catalog for a small local library, where users can browse available books and manage their accounts.\n\n![A UML diagram showing the relation of database entities in this example repository](https://raw.githubusercontent.com/mdn/express-locallibrary-tutorial/main/public/images/Library%20Website%20-%20Mongoose_Express.png)\n\nFor more information see the associated [MDN tutorial home page](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Tutorial_local_library_website).\n\n\u003e **Note** The [auth branch](/../../tree/auth) in this repository implements an _unsupported_ and _undocumented_ version of the library with User Authentication and Authorization. This may be a useful starting point for some users.\n\n## Quick Start\n\nTo get this project up and running locally on your computer:\n\n1. Set up a [Node.js](https://wiki.developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/development_environment) development environment.\n2. Once you have node setup install the project in the root of your clone of this repo:\n\n   ```bash\n   npm install\n   ```\n3. Run the tutorial server, using the appropriate command line shell for your environment:\n\n   ```bash\n   # Linux terminal\n   DEBUG=express-locallibrary-tutorial:* npm run devstart\n   \n   # Windows Powershell\n   $ENV:DEBUG = \"express-locallibrary-tutorial:*\"; npm start\n   ```\n4. Open a browser to \u003chttp://localhost:3000/\u003e to open the library site.\n\n\u003e **Note:** The library uses a default MongoDB database hosted on [MongoDB Atlas](https://www.mongodb.com/cloud/atlas). You should use a different database for your own code experiments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdn%2Fexpress-locallibrary-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdn%2Fexpress-locallibrary-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdn%2Fexpress-locallibrary-tutorial/lists"}