{"id":25060279,"url":"https://github.com/yassinekrn/express-local-library-tutorial","last_synced_at":"2026-04-04T22:33:39.541Z","repository":{"id":188507564,"uuid":"673431686","full_name":"Yassinekrn/Express-Local-Library-Tutorial","owner":"Yassinekrn","description":"A Node.js application for managing a local library, built with Express.js. Features include book cataloging, author management, and lending functionalities. Designed for learning and exploration of web development concepts.","archived":false,"fork":false,"pushed_at":"2025-01-14T21:41:51.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T11:16:00.831Z","etag":null,"topics":["express-middleware","express-session","express-validator","expressjs","nodejs","pug-templates"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yassinekrn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01T15:54:04.000Z","updated_at":"2025-01-15T14:54:19.000Z","dependencies_parsed_at":"2025-01-14T22:31:31.578Z","dependency_job_id":"31603835-ff63-4911-b72b-efade8b4cfe5","html_url":"https://github.com/Yassinekrn/Express-Local-Library-Tutorial","commit_stats":null,"previous_names":["yassinekrn/express-locallibrary-tutorial","yassinekrn/express-local-library-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yassinekrn%2FExpress-Local-Library-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yassinekrn%2FExpress-Local-Library-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yassinekrn%2FExpress-Local-Library-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yassinekrn%2FExpress-Local-Library-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yassinekrn","download_url":"https://codeload.github.com/Yassinekrn/Express-Local-Library-Tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458009,"owners_count":20780678,"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":["express-middleware","express-session","express-validator","expressjs","nodejs","pug-templates"],"created_at":"2025-02-06T15:57:41.293Z","updated_at":"2025-12-30T22:45:46.804Z","avatar_url":"https://github.com/Yassinekrn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express LocalLibrary Tutorial\n\nA tutorial-based web application for managing a local library's catalog using Node.js and Express.js. 📚\n\n---\n\nThis project showcases an online catalog system for a small local library. It allows users to browse books and view detailed information. The project is based on the [MDN Local Library tutorial](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Tutorial_local_library_website), with custom enhancements and learnings incorporated during development.\n\n![UML Diagram - Database Entity Relationships](https://raw.githubusercontent.com/mdn/express-locallibrary-tutorial/main/public/images/Library%20Website%20-%20Mongoose_Express.png)\n\n---\n\n## Key Features ✨\n\n- **Book Browsing:** View available books, authors, genres, and detailed information for each item.\n- **Dynamic Web Pages:** Developed using Pug templates for server-side rendering.\n- **RESTful APIs:** Includes endpoints to interact with the database seamlessly.\n- **MongoDB Integration:** Uses Mongoose for object data modeling and MongoDB Atlas for cloud-based database hosting.\n\n---\n\n## What I Learned 🧠\n\nThis project was an excellent learning experience for foundational server-side web development. Key takeaways include:\n\n- **Node.js \u0026 Express:** Learned to build a robust backend for handling HTTP requests and routing.\n- **Template Engines:** Used Pug to dynamically generate HTML based on server-side data.\n- **Database Modeling:** Gained experience in designing and querying MongoDB databases using Mongoose.\n- **Error Handling:** Implemented effective error handling and debugging practices.\n- **Professional Folder Structuring:** Adopted industry-standard project structures and workflows for maintainability and scalability.\n- **Environment Setup:** Configured development environments for Linux and Windows platforms.\n\n---\n\n## Quick Start 🚀\n\nTo run this project locally, follow these steps:\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- [Node.js](https://wiki.developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/development_environment)\n- A MongoDB instance (local or cloud-based via [MongoDB Atlas](https://www.mongodb.com/cloud/atlas))\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Yassinekrn/express-locallibrary-tutorial.git\n   cd express-locallibrary-tutorial\n   ```\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Set up your environment variables (if using a custom database):\n   - Create a `.env` file in the root directory.\n   - Add the following:\n     ```env\n     MONGODB_URI=\u003cyour_mongodb_connection_string\u003e\n     DEBUG=express-locallibrary-tutorial:*\n     ```\n\n### Run the Server\n\n4. Start the server:\n   ```bash\n   # Linux/macOS\n   DEBUG=express-locallibrary-tutorial:* npm run devstart\n\n   # Windows Powershell\n   $ENV:DEBUG = \"express-locallibrary-tutorial:*\"; npm start\n   ```\n5. Open your browser and navigate to:\n   ```\n   http://localhost:3000/\n   ```\n\n---\n\n## Credits 🙌\n\nThis project is a fork of the [MDN Local Library Tutorial](https://github.com/mdn/express-locallibrary-tutorial). While following the tutorial, I added custom code and improvements to enhance functionality and solidify my understanding of Express.js, MongoDB, and project structuring.\n\n---\n\n## Acknowledgments 💡\n\nThank you to the MDN Web Docs team for providing an excellent resource for learning server-side development. This project has greatly helped me grow as a developer and deepened my understanding of modern web application architecture.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyassinekrn%2Fexpress-local-library-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyassinekrn%2Fexpress-local-library-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyassinekrn%2Fexpress-local-library-tutorial/lists"}