{"id":13650290,"url":"https://github.com/moleculerjs/moleculer-template-project","last_synced_at":"2025-04-22T18:31:11.449Z","repository":{"id":38849171,"uuid":"123713337","full_name":"moleculerjs/moleculer-template-project","owner":"moleculerjs","description":":mortar_board: Common project template for Moleculer-based projects","archived":false,"fork":false,"pushed_at":"2024-01-13T11:40:54.000Z","size":3266,"stargazers_count":22,"open_issues_count":0,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-16T00:50:53.049Z","etag":null,"topics":["moleculer","moleculer-template"],"latest_commit_sha":null,"homepage":null,"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/moleculerjs.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}},"created_at":"2018-03-03T17:07:15.000Z","updated_at":"2025-03-10T19:45:21.000Z","dependencies_parsed_at":"2024-01-16T23:27:11.220Z","dependency_job_id":"ad70df98-07a0-4c57-ab5b-caadb9c04bf7","html_url":"https://github.com/moleculerjs/moleculer-template-project","commit_stats":{"total_commits":187,"total_committers":8,"mean_commits":23.375,"dds":"0.10160427807486627","last_synced_commit":"fa9ba08d05469510a1ce26f1901eed9a1247dbfd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-template-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-template-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-template-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-template-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moleculerjs","download_url":"https://codeload.github.com/moleculerjs/moleculer-template-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250297260,"owners_count":21407180,"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":["moleculer","moleculer-template"],"created_at":"2024-08-02T02:00:35.601Z","updated_at":"2025-04-22T18:31:11.051Z","avatar_url":"https://github.com/moleculerjs.png","language":"JavaScript","funding_links":[],"categories":["Templates"],"sub_categories":["Javascript"],"readme":"# Moleculer template: `project`\r\n:mortar_board: Moleculer-based microservices project template.\r\n\r\n## Features\r\n- Moleculer v0.14 with full-detailed `moleculer.config.js` file.\r\n- Common mono-repo project with a demo `greeter` service.\r\n- Sample database `products` service (with file-based NeDB in development \u0026 MongoDB in production).\r\n- Optional API Gateway service with detailed service settings.\r\n- Beautiful static welcome page to test generated services \u0026 watch nodes and services.\r\n- Optional Transporter \u0026 Cacher.\r\n- Metrics \u0026 Tracing.\r\n- Docker \u0026 Docker Compose \u0026 Kubernetes files.\r\n- Unit tests with [Jest](http://facebook.github.io/jest/).\r\n- Lint with [ESLint](http://eslint.org/).\r\n- Launch file for debugging in [VSCode](https://code.visualstudio.com/).\r\n\r\n\r\n## Install\r\nTo install use the [moleculer-cli](https://github.com/moleculerjs/moleculer-cli) tool.\r\n\r\n```bash\r\n$ moleculer init project my-project\r\n```\r\n\r\n## Prompts\r\n```\r\n$ moleculer init project moleculer-demo\r\n\r\nTemplate repo: moleculerjs/moleculer-template-project\r\n? Add API Gateway (moleculer-web) service? Yes\r\n? Would you like to communicate with other nodes? Yes\r\n? Select a transporter NATS (recommended)\r\n? Would you like to use cache? No\r\n? Add DB sample service? Yes\r\n? Would you like to enable metrics? Yes\r\n? Would you like to enable tracing? Yes\r\n? Add Docker \u0026 Kubernetes sample files? Yes\r\n? Use ESLint to lint your code? Yes\r\nCreate 'moleculer-demo' folder...\r\n? Would you like to run 'npm install'? Yes\r\n```\r\n\r\n## NPM scripts\r\n- `npm run dev`: Start development mode (load all services locally without transporter with hot-reload \u0026 REPL)\r\n- `npm run start`: Start production mode (set `SERVICES` env variable to load certain services)\r\n- `npm run cli`: Start a CLI and connect to production. _Don't forget to set production namespace with `--ns` argument in script_\r\n- `npm run lint`: Run ESLint\r\n- `npm run ci`: Run continuous test mode with watching\r\n- `npm test`: Run tests \u0026 generate coverage report\r\n- `npm run dc:up`: Start the stack with Docker Compose\r\n- `npm run dc:logs`: Watch \u0026 follow the container logs\r\n- `npm run dc:down`: Stop the stack with Docker Compose\r\n\r\n## License\r\nmoleculer-template-project is available under the [MIT license](https://tldrlegal.com/license/mit-license).\r\n\r\n## Contact\r\nCopyright (c) 2023 MoleculerJS\r\n\r\n[![@moleculerjs](https://img.shields.io/badge/github-moleculerjs-green.svg)](https://github.com/moleculerjs) [![@MoleculerJS](https://img.shields.io/badge/twitter-MoleculerJS-blue.svg)](https://twitter.com/MoleculerJS)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-template-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoleculerjs%2Fmoleculer-template-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-template-project/lists"}