{"id":15408154,"url":"https://github.com/one-aalam/microcosm","last_synced_at":"2026-03-07T17:32:01.591Z","repository":{"id":40764384,"uuid":"270383320","full_name":"one-aalam/microcosm","owner":"one-aalam","description":"🦄 Micro Cosmos of Microservices aspiring to be seen as a well-ordered whole","archived":false,"fork":false,"pushed_at":"2023-01-24T02:54:29.000Z","size":1661,"stargazers_count":4,"open_issues_count":55,"forks_count":0,"subscribers_count":2,"default_branch":"workshop","last_synced_at":"2025-04-19T03:08:34.302Z","etag":null,"topics":["apollo","apollo-server","graphql","lerna","lerna-monorepo","micro","microservice","microservices-architecture","nodejs","techstack"],"latest_commit_sha":null,"homepage":"","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/one-aalam.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}},"created_at":"2020-06-07T17:39:47.000Z","updated_at":"2024-04-02T15:00:07.000Z","dependencies_parsed_at":"2023-02-13T13:45:44.227Z","dependency_job_id":null,"html_url":"https://github.com/one-aalam/microcosm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/one-aalam/microcosm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fmicrocosm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fmicrocosm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fmicrocosm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fmicrocosm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-aalam","download_url":"https://codeload.github.com/one-aalam/microcosm/tar.gz/refs/heads/workshop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fmicrocosm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30223289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["apollo","apollo-server","graphql","lerna","lerna-monorepo","micro","microservice","microservices-architecture","nodejs","techstack"],"created_at":"2024-10-01T16:32:08.798Z","updated_at":"2026-03-07T17:32:01.546Z","avatar_url":"https://github.com/one-aalam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MICRO.COSM\nA very minimal micro-service monorepo\n\n# Table of Contents\n  - [Introduction](#introduction)\n  - [Tech Stack](#techstack)\n  - [Install](#install)\n  - [Usage](#usage)\n  - [Lerna Quick-Reference](#lerna-quick-reference)\n\n\n## Introduction\nA very minimal micro-service monorepo\n\nThe project has 3 packages (inside packages directory)\n\n- micro-one (http server - based on Micro)\n- micro-two (http server - based on Micro)\n- micro-three (http server - based on Express)\n\n## Techstack\n\n- [Lerna](https://github.com/lerna/lerna) - A tool for managing JavaScript projects with multiple packages\n- [Micro](https://github.com/vercel/micro) - Asynchronous HTTP microservices or,\n- [Express](https://expressjs.com/) - 'Coz everybody uses it\n- [Jest](https://jestjs.io) - Jest is a delightful JavaScript Testing Framework with a focus on simplicity\n- [Supertest](https://github.com/visionmedia/supertest) - High-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by it\n\n## Design Principles\nThe list of community contributed modules used in the micros is kept at minimum. I tried to keep it that way to show the power of the approach and, of course, the language itself.\n\n## Data/Domain Models\nSearch/Discover, Order, Delivery, Payment/Checkout, Restautaurant\n\n## Install\nCheckout the repo and run\n```sh\nlerna bootstrap\n```\nin the project's directory\n\nThat's it 🚀.\n\n_You'll find the dependenices installed and resolved now_\n\n\u003e `lerna` needs to be available globally for this\n\n## Usage\n\nGo to the root of the  project and run\n```\nlerna run start\n```\n\nThat's it 🚀.\n\n_You'll find the services available on their respective ports. Visit the respective ports and see `em in action._\n\n\u003e `lerna` suppresses log output of npm scripts by defualt. To allow for that, run the above script with `--stream` flag\n\n## Jest\nReasons to use Jest\n  - Jest is easy to setup\n  - The watch-mode is amazing\n  - When you console.log something, it actually shows up without any difficulty (this is a bit tricky with many existing Frameworks ).\n\n\n## Lerna Quick-Reference\nSince most of the `micros` will share some common characterstics and behavior, Lerna is levaraged to manage community and cross-micro\ndepenedencies so that it's DRY and less boring DX for ya!\n\nHere are few of the commands you may find yourselves looking up quite often\n```sh\n# Adds the module-1 package to the packages in the 'prefix-' prefixed folders\nlerna add module-1 packages/prefix-*\n\n# Install module-1 to module-2\nlerna add module-1 --scope=module-2\n\n# Install module-1 to module-2 in devDependencies\nlerna add module-1 --scope=module-2 --dev\n\n# Install module-1 to module-2 in peerDependencies\nlerna add module-1 --scope=module-2 --peer\n\n# Install module-1 in all modules except module-1\nlerna add module-1\n\n# Install babel-core in all modules\nlerna add babel-core\n```\n\nVisit https://github.com/lerna/lerna for more..","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fmicrocosm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-aalam%2Fmicrocosm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fmicrocosm/lists"}