{"id":13989656,"url":"https://github.com/gothinkster/moleculer-node-realworld-example-app","last_synced_at":"2025-07-22T11:31:05.315Z","repository":{"id":65977532,"uuid":"110876231","full_name":"gothinkster/moleculer-node-realworld-example-app","owner":"gothinkster","description":"Exemplary real world application built with Moleculer","archived":true,"fork":false,"pushed_at":"2018-06-11T07:28:50.000Z","size":874,"stargazers_count":103,"open_issues_count":2,"forks_count":27,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-29T08:39:25.244Z","etag":null,"topics":["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/gothinkster.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}},"created_at":"2017-11-15T19:20:38.000Z","updated_at":"2024-07-24T21:03:32.000Z","dependencies_parsed_at":"2023-02-19T18:45:17.602Z","dependency_job_id":null,"html_url":"https://github.com/gothinkster/moleculer-node-realworld-example-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gothinkster/moleculer-node-realworld-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gothinkster%2Fmoleculer-node-realworld-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gothinkster%2Fmoleculer-node-realworld-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gothinkster%2Fmoleculer-node-realworld-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gothinkster%2Fmoleculer-node-realworld-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gothinkster","download_url":"https://codeload.github.com/gothinkster/moleculer-node-realworld-example-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gothinkster%2Fmoleculer-node-realworld-example-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483539,"owners_count":23936364,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["microservices","moleculer","realworld"],"created_at":"2024-08-09T13:01:54.998Z","updated_at":"2025-07-22T11:31:04.762Z","avatar_url":"https://github.com/gothinkster.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ![RealWorld Example App](rw-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%2Fgothinkster%2Fmoleculer-node-realworld-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgothinkster%2Fmoleculer-node-realworld-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgothinkster%2Fmoleculer-node-realworld-example-app/lists"}