- Notifications
You must be signed in to change notification settings - Fork32
🌏 RealWorld example app with Moleculer microservices framework
License
moleculerjs/moleculer-realworld-example-app
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repo is functionality complete — PRs and issues welcome!
Live demo on Glitch:https://realworld-moleculer.glitch.me
Glitch project:https://glitch.com/edit/#!/realworld-moleculer
React + Redux front-end UI is included.For more information on how to this works with other frontends/backends, head over to theRealWorld repo.
- Clone this repo
npm installto install all required dependenciesnpm run devto start the local server- the API is available athttp://localhost:3000/api
Alternately, to quickly try out this repo in the cloud, you can
Basically the services stores data in an NeDB persistent file storage in the./data folder. If you have to use MongoDB, set theMONGO_URI environment variable.
MONGO_URI=mongodb://localhost/conduitYou can run multiple instances of services. In this case you need to use a transporter i.e.:NATS. NATS is a lightweight & fast message broker. Download it and start withgnatsd command. After it started, set theTRANSPORTER env variable and start services.
TRANSPORTER=nats://localhost:4222Checkout the repo
git clone https://github.com/ice-services/moleculer-realworld-example-app.gitcd moleculer-realworld-example-appStart with docker-compose:
docker-compose up -dIt starts all services in separated containers, a NATS server for communication, a MongoDB server for database and aTraefik reverse proxy
Open thehttp://docker-ip:3000
Scale up services
docker-compose scale api=3 articles=2 users=2 comments=2 follows=2 favorites=2
- moleculer - Microservices framework for NodeJS
- moleculer-web - Official API Gateway service for Moleculer
- moleculer-db - Database store service for Moleculer
- moleculer-db-adapter-mongo - Database store service for MongoDB(optional)
- jsonwebtoken - For generating JWTs used by authentication
- bcrypt - Hashing user password
- lodash - Utility library
- slug - For encoding titles into a URL-friendly format
- nats -NATS transport driver for Moleculer(optional)
moleculer.config.js- Moleculer ServiceBroker configuration file.services/- This folder contains the services.public/- This folder contains the front-end static files.data/- This folder contains the NeDB database files.
Tested withrealworld-server-tester.
Local tests is missing currently.
$ npm testIn development with watching
$ npm run ciThis project is available under theMIT license.
Copyright (c) 2016-2017 Ice-Services
About
🌏 RealWorld example app with Moleculer microservices framework
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
