{"id":17829673,"url":"https://github.com/guidefari/molecular","last_synced_at":"2025-04-02T11:43:07.647Z","repository":{"id":124502282,"uuid":"524063183","full_name":"guidefari/molecular","owner":"guidefari","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-12T11:48:04.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T02:44:28.029Z","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/guidefari.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}},"created_at":"2022-08-12T11:31:08.000Z","updated_at":"2022-08-12T11:31:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b221dc6c-87b6-49cd-bad9-7228f41cdce8","html_url":"https://github.com/guidefari/molecular","commit_stats":null,"previous_names":["guidefari/molecular"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fmolecular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fmolecular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fmolecular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guidefari%2Fmolecular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guidefari","download_url":"https://codeload.github.com/guidefari/molecular/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811235,"owners_count":20837745,"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-10-27T19:16:59.004Z","updated_at":"2025-04-02T11:43:07.553Z","avatar_url":"https://github.com/guidefari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Moleculer](https://badgen.net/badge/Powered%20by/Moleculer/0e83cd)](https://moleculer.services)\n\n# molecular\nThis is a [Moleculer](https://moleculer.services/)-based microservices project. Generated with the [Moleculer CLI](https://moleculer.services/docs/0.14/moleculer-cli.html).\n\n## Usage\nStart the project with `npm run dev` command. \nAfter starting, open the http://localhost:3000/ URL in your browser. \nOn the welcome page you can test the generated services via API Gateway and check the nodes \u0026 services.\n\nIn the terminal, try the following commands:\n- `nodes` - List all connected nodes.\n- `actions` - List all registered service actions.\n- `call greeter.hello` - Call the `greeter.hello` action.\n- `call greeter.welcome --name John` - Call the `greeter.welcome` action with the `name` parameter.\n- `call products.list` - List the products (call the `products.list` action).\n\n\n## Services\n- **api**: API Gateway services\n- **greeter**: Sample service with `hello` and `welcome` actions.\n- **products**: Sample DB service. To use with MongoDB, set `MONGO_URI` environment variables and install MongoDB adapter with `npm i moleculer-db-adapter-mongo`.\n\n## Mixins\n- **db.mixin**: Database access mixin for services. Based on [moleculer-db](https://github.com/moleculerjs/moleculer-db#readme)\n\n\n## Useful links\n\n* Moleculer website: https://moleculer.services/\n* Moleculer Documentation: https://moleculer.services/docs/0.14/\n\n## NPM scripts\n\n- `npm run dev`: Start development mode (load all services locally with hot-reload \u0026 REPL)\n- `npm run start`: Start production mode (set `SERVICES` env variable to load certain services)\n- `npm run cli`: Start a CLI and connect to production. Don't forget to set production namespace with `--ns` argument in script\n- `npm run lint`: Run ESLint\n- `npm run ci`: Run continuous test mode with watching\n- `npm test`: Run tests \u0026 generate coverage report\n- `npm run dc:up`: Start the stack with Docker Compose\n- `npm run dc:down`: Stop the stack with Docker Compose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidefari%2Fmolecular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguidefari%2Fmolecular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguidefari%2Fmolecular/lists"}