{"id":21448135,"url":"https://github.com/ehsangazar/singlespa","last_synced_at":"2025-03-17T02:09:38.643Z","repository":{"id":252708167,"uuid":"841207063","full_name":"ehsangazar/singlespa","owner":"ehsangazar","description":"SingleSPA React Project Example","archived":false,"fork":false,"pushed_at":"2024-08-11T23:34:01.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T11:45:41.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ehsangazar.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":"2024-08-11T23:21:51.000Z","updated_at":"2024-08-11T23:34:04.000Z","dependencies_parsed_at":"2024-08-12T00:28:38.257Z","dependency_job_id":"00cd0354-a00f-498e-9af8-52adabda7e32","html_url":"https://github.com/ehsangazar/singlespa","commit_stats":null,"previous_names":["ehsangazar/singlespa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsangazar%2Fsinglespa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsangazar%2Fsinglespa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsangazar%2Fsinglespa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsangazar%2Fsinglespa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehsangazar","download_url":"https://codeload.github.com/ehsangazar/singlespa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960665,"owners_count":20375104,"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-23T03:14:11.345Z","updated_at":"2025-03-17T02:09:38.625Z","avatar_url":"https://github.com/ehsangazar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single-SPA Microfrontend Project\n\n## Overview\n\nThis project utilizes [Single-SPA](https://single-spa.js.org/), a framework designed for building microfrontend applications. Single-SPA allows you to integrate multiple frontend applications into a single-page application (SPA) by enabling different frameworks or libraries within the same project.\n\n## Single-SPA\n\nSingle-SPA (Single Single-Page Application) is a framework for creating microfrontend architectures. It enables the construction of a single-page application composed of multiple independent SPAs. Benefits include:\n\n- **Modularity**: Each microfrontend can be developed, tested, and deployed independently.\n- **Framework Agnostic**: Use different frameworks (React, Vue, Angular) in the same project.\n- **Scalability**: Manage and scale large applications by dividing them into smaller, manageable pieces.\n\n## Directory Structure\n\nThis repository includes the following microfrontends:\n\n- **root-config**: Main configuration file for Single-SPA, handling routing and loading of microfrontends.\n- **styleguide**: Microfrontend providing style guidelines and components.\n- **navbar**: Microfrontend responsible for the navigation bar.\n- **utilities**: Microfrontend with utility functions or services.\n- **procurement**: Microfrontend for procurement-related functionality.\n\n## Script Explanation\n\nThe provided script manages the development environment by:\n\n1. **Killing Existing Processes**: Stops any processes running on ports 9000 through 9010 to prevent port conflicts.\n2. **Installing Dependencies**: Installs necessary dependencies for each microfrontend using `pnpm`.\n3. **Starting Services**: Starts each microfrontend service using `pnpm start`.\n4. **Notification**: Prints a message with the URL to access the application.\n\n## Using the Script\n\nFollow these steps to use the script:\n\n1. **Ensure `pnpm` is Installed**: Make sure `pnpm` is installed. If not, install it using:\n\n```bash\nnpm install -g pnpm\n```\n\n2. Clone the Repository: Clone the repository to your local machine:\n\n```bash\ngit clone https://your-repository-url.git\ncd your-repository-directory\n```\n\n3. Make the Script Executable: Ensure the script has executable permissions:\n\n```bash\nchmod +x start-all.sh\n```\n\n4. Run the Script: Execute the script to install dependencies, start services, and clean up old processes:\n\n```bash\n./start-all.sh\n```\n\n5. Visit the Application: After the script completes, open your browser and navigate to:\n\n```bash\nhttp://localhost:9000\n```\n\nThis URL will direct you to the main application integrating all microfrontends.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsangazar%2Fsinglespa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehsangazar%2Fsinglespa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsangazar%2Fsinglespa/lists"}