{"id":21681871,"url":"https://github.com/ronnmabunga/ronnmabunga-demo-apis","last_synced_at":"2026-01-27T17:06:03.716Z","repository":{"id":262061772,"uuid":"886069008","full_name":"ronnmabunga/ronnmabunga-demo-apis","owner":"ronnmabunga","description":"Repository of multiple Express.js APIs deployed in a single application. Each sub-application is maintained as a separate Git module.","archived":false,"fork":false,"pushed_at":"2024-11-15T17:52:27.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T03:05:52.443Z","etag":null,"topics":["api-rest","express-js","git-submodules"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronnmabunga.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":"2024-11-10T05:22:54.000Z","updated_at":"2025-01-21T22:04:38.000Z","dependencies_parsed_at":"2025-01-25T11:23:13.155Z","dependency_job_id":"ec8d54b6-d545-4968-9cb0-a4e01f38f600","html_url":"https://github.com/ronnmabunga/ronnmabunga-demo-apis","commit_stats":null,"previous_names":["ronnmabunga/ronnmabunga-demo-apis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronnmabunga/ronnmabunga-demo-apis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnmabunga%2Fronnmabunga-demo-apis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnmabunga%2Fronnmabunga-demo-apis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnmabunga%2Fronnmabunga-demo-apis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnmabunga%2Fronnmabunga-demo-apis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronnmabunga","download_url":"https://codeload.github.com/ronnmabunga/ronnmabunga-demo-apis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnmabunga%2Fronnmabunga-demo-apis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-rest","express-js","git-submodules"],"created_at":"2024-11-25T15:32:04.699Z","updated_at":"2026-01-27T17:06:03.700Z","avatar_url":"https://github.com/ronnmabunga.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aggregated Express.js API Modules Application\n\n## Description\n\nThis repository aggregates three separate Express.js applications, each of which serves as an API for a specific use case. The main application acts as an entry point and uses sub-paths to route requests to each of the individual API sub-apps. The sub-apps are included as Git submodules and are all mounted under their respective routes in the main app.\n\n## Features\n\n-   **Main Application:** The main app located in the root directory (index.js) serves as a central entry point, routing requests to each sub-app.\n-   **Sub-Applications:**\n    -   **Blogging Website API:** (/expressjs-mongodb-mrc-blogging-api-demo) – serves APIs related to a blogging website.\n    -   **User Management API:** (/expressjs-fs-monolithic-user-api-demo) – provides endpoints for user management functions.\n    -   **E-commerce API:** (/expressjs-mongodb-mrc-ecommerce-api-demo) – handles e-commerce-related endpoints, such as products, orders, and user profiles.\n\n## How to Run\n\n### Cloning the Repository with Submodules\n\nTo clone the repository and initialize submodules, run:\n\n```bash\ngit clone --recurse-submodules \u003crepository-url\u003e\n```\n\nIf you’ve already cloned the repository without submodules, you can initialize and update them by running:\n\n```bash\ngit submodule update --init --recursive\n```\n\n### Installation\n\nInstall dependencies for all the apps:\n\n```bash\nnpm run setup\n```\n\nThe `setup` script in the `package.json` installs the dependencies for the main app as well as for the sub-apps.\n\n### Environment Configuration\n\nSince only the main app will be running, all the environment variables for all the sub-apps must be provided to the main app's entry point.\nAs you can see on the `.env.template`, each sub-app has its own sets of environment variables\nThese variables are also reflected on the individual `.env.template` for each sub-apps, this is because those variables will be used when the sub-apps are run separately.\n\n```bash\nDEMO1_PORT=\nDEMO1_MONGO_STRING=\nDEMO1_JWT_SECRET_KEY=\n\nDEMO2_JWT_SECRET=\nDEMO2_PORT=\nDEMO2_SERVER=\nDEMO2_DATA_FILE_PATH=\nDEMO2_API_PATH=\n\nDEMO3_PORT=\nDEMO3_MONGO_STRING=\nDEMO3_JWT_SECRET_KEY=\nDEMO3_AWS_ACCESS_KEY_ID=\nDEMO3_AWS_SECRET_ACCESS_KEY=\nDEMO3_AWS_REGION=\nDEMO3_AWS_BUCKET_NAME=\nDEMO3_SERVER=\n```\n\n### Running the Application\n\nStart the main application using the following command from the root directory:\n\n```bash\nnpm run start\n```\n\nThe app will run on port 4000, and each sub-application will be available under a unique path:\n\n-   Blogging Website API: http://localhost:4000/demo-api-1\n-   User Management API: http://localhost:4000/demo-api-2\n-   E-commerce API: http://localhost:4000/demo-api-3\n\n## Dependencies\n\n    express: Web framework for Node.js\n    dotenv: Loads environment variables from .env\n\n## License\n\n    This project is licensed under the GNU GENERAL PUBLIC LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnmabunga%2Fronnmabunga-demo-apis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronnmabunga%2Fronnmabunga-demo-apis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnmabunga%2Fronnmabunga-demo-apis/lists"}