{"id":28436898,"url":"https://github.com/moleculerjs/moleculer-realworld-example-app","last_synced_at":"2025-08-24T02:04:25.070Z","repository":{"id":84860907,"uuid":"109962557","full_name":"moleculerjs/moleculer-realworld-example-app","owner":"moleculerjs","description":":earth_asia: RealWorld example app with Moleculer microservices framework","archived":false,"fork":false,"pushed_at":"2020-01-02T20:55:37.000Z","size":806,"stargazers_count":55,"open_issues_count":4,"forks_count":33,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-05T23:07:56.164Z","etag":null,"topics":["example-app","microservices","moleculer","realworld"],"latest_commit_sha":null,"homepage":"https://realworld.io/","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}},"created_at":"2017-11-08T10:40:33.000Z","updated_at":"2025-05-01T08:54:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccce355e-9a2a-4de8-8663-3a30c40b7aa8","html_url":"https://github.com/moleculerjs/moleculer-realworld-example-app","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":"0.019230769230769273","last_synced_commit":"306fd4aa8b99e843469c3099c547b379ce8434ec"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moleculerjs/moleculer-realworld-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-realworld-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-realworld-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-realworld-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-realworld-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moleculerjs","download_url":"https://codeload.github.com/moleculerjs/moleculer-realworld-example-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculerjs%2Fmoleculer-realworld-example-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260953373,"owners_count":23088029,"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":["example-app","microservices","moleculer","realworld"],"created_at":"2025-06-05T23:07:54.274Z","updated_at":"2025-06-27T20:32:16.420Z","avatar_url":"https://github.com/moleculerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![RealWorld Example App](logo.png)\n\n\u003e ### [Moleculer](http://moleculer.services/) codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.\n\nThis repo is functionality complete — PRs and issues welcome!\n\n**Live demo on Glitch: https://realworld-moleculer.glitch.me**\n\nGlitch project: https://glitch.com/edit/#!/realworld-moleculer\n\n*[React + Redux](https://github.com/icebob/react-redux-realworld-example-app) front-end UI is included.*\n*For more information on how to this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.*\n\n## Getting started\n\n### To get the Node server running locally:\n\n- Clone this repo\n- `npm install` to install all required dependencies\n- `npm run dev` to start the local server\n- the API is available at http://localhost:3000/api\n\nAlternately, to quickly try out this repo in the cloud, you can \n\n[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/realworld-moleculer)\n\n#### MongoDB persistent store\nBasically the services stores data in an NeDB persistent file storage in the `./data` folder. If you have to use MongoDB, set the `MONGO_URI` environment variable.\n```\nMONGO_URI=mongodb://localhost/conduit\n```\n\n#### Multiple instances\nYou can run multiple instances of services. In this case you need to use a transporter i.e.: [NATS](https://nats.io). NATS is a lightweight \u0026 fast message broker. Download it and start with `gnatsd` command. After it started, set the `TRANSPORTER` env variable and start services.\n```\nTRANSPORTER=nats://localhost:4222\n```\n\n### To get the Node server running locally with Docker\n\n1. Checkout the repo `git clone https://github.com/ice-services/moleculer-realworld-example-app.git`\n2. `cd moleculer-realworld-example-app`\n3. Start with docker-compose: `docker-compose up -d`\n\t\n\tIt starts all services in separated containers, a NATS server for communication, a MongoDB server for database and a [Traefik](https://traefik.io/) reverse proxy\n4. Open the http://docker-ip:3000\n5. Scale up services\n\t\n\t`docker-compose scale api=3 articles=2 users=2 comments=2 follows=2 favorites=2`\n\n## Code Overview\n\n### Dependencies\n\n- [moleculer](https://github.com/ice-services/moleculer) - Microservices framework for NodeJS\n- [moleculer-web](https://github.com/ice-services/moleculer-web) - Official API Gateway service for Moleculer\n- [moleculer-db](https://github.com/ice-services/moleculer-db/tree/master/packages/moleculer-db#readme) - Database store service for Moleculer\n- [moleculer-db-adapter-mongo](https://github.com/ice-services/moleculer-db/tree/master/packages/moleculer-db-adapter-mongo#readme) - Database store service for MongoDB *(optional)*\n- [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) - For generating JWTs used by authentication\n- [bcrypt](https://github.com/kelektiv/node.bcrypt.js) - Hashing user password\n- [lodash](https://github.com/lodash/lodash) - Utility library\n- [slug](https://github.com/dodo/node-slug) - For encoding titles into a URL-friendly format\n- [nats](https://github.com/dodo/node-slug) - [NATS](https://nats.io) transport driver for Moleculer *(optional)*\n\n### Application Structure\n\n- `moleculer.config.js` - Moleculer ServiceBroker configuration file.\n- `services/` - This folder contains the services.\n- `public/` - This folder contains the front-end static files.\n- `data/` - This folder contains the NeDB database files.\n\n## Test\n\n**Tested with [realworld-server-tester](https://github.com/agrison/realworld-server-tester).**\n\n*Local tests is missing currently.*\n```\n$ npm test\n```\n\nIn development with watching\n\n```\n$ npm run ci\n```\n\n## License\nThis project is available under the [MIT license](https://tldrlegal.com/license/mit-license).\n\n## Contact\nCopyright (c) 2016-2017 Ice-Services\n\n[![@ice-services](https://img.shields.io/badge/github-ice--services-green.svg)](https://github.com/ice-services) [![@MoleculerJS](https://img.shields.io/badge/twitter-MoleculerJS-blue.svg)](https://twitter.com/MoleculerJS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-realworld-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoleculerjs%2Fmoleculer-realworld-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculerjs%2Fmoleculer-realworld-example-app/lists"}