All Projects → gothinkster → moleculer-node-realworld-example-app

gothinkster / moleculer-node-realworld-example-app

Licence: MIT license
Exemplary real world application built with Moleculer

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to moleculer-node-realworld-example-app

Realworld Dynamodb Lambda
λ serverless backend implementation for RealWorld using AWS DynamoDB + Lambda
Stars: ✭ 185 (+81.37%)
Mutual labels:  realworld
moleculer-http-client
HTTP client mixin that allows Moleculer services to communicate with remote REST APIs
Stars: ✭ 14 (-86.27%)
Mutual labels:  moleculer
Moleculer
🚀 Progressive microservices framework for Node.js
Stars: ✭ 4,845 (+4650%)
Mutual labels:  moleculer
moleculer-repl
REPL module for Moleculer framework
Stars: ✭ 24 (-76.47%)
Mutual labels:  moleculer
moleculer-sc
API Gateway service for Moleculer framework using SocketCluster
Stars: ✭ 19 (-81.37%)
Mutual labels:  moleculer
moleculer-boilerplate-ts
[WIP] A Comprehensive Boilerplate for NodeJS micro-services project with moleculerjs.
Stars: ✭ 20 (-80.39%)
Mutual labels:  moleculer
Haskell Scotty Realworld Example App
Exemplary real world backend API built with Haskell/Scotty https://realworld.io
Stars: ✭ 162 (+58.82%)
Mutual labels:  realworld
moleculer
🚀 Progressive microservices framework for Go - based and compatible with https://github.com/moleculerjs/moleculer
Stars: ✭ 135 (+32.35%)
Mutual labels:  moleculer
moleculer-java
Java implementation of the Moleculer microservices framework
Stars: ✭ 39 (-61.76%)
Mutual labels:  moleculer
moleculer-template-project-typescript
Typescript project template for Moleculer microservices framework.
Stars: ✭ 92 (-9.8%)
Mutual labels:  moleculer
moleculer-adapter-feathers
Moleculer service mixin wrapping Feathers.js services
Stars: ✭ 17 (-83.33%)
Mutual labels:  moleculer
moleculer-channels
Reliable messages for Moleculer services via external queue/channel/topic.
Stars: ✭ 45 (-55.88%)
Mutual labels:  moleculer
database
Advanced Database Access Service for Moleculer microservices framework
Stars: ✭ 22 (-78.43%)
Mutual labels:  moleculer
Rust Yew Realworld Example App
Exemplary real world app built with Rust + Yew + WebAssembly
Stars: ✭ 249 (+144.12%)
Mutual labels:  realworld
akka-http-realworld-example
Exemplary real world application built with Scala + Akka HTTP https://realworld.io
Stars: ✭ 30 (-70.59%)
Mutual labels:  realworld
React Redux Typescript Realworld App
RealWorld App implementation based on "react-redux-typescript-guide"
Stars: ✭ 178 (+74.51%)
Mutual labels:  realworld
moleculer-db
🔋 Database access service mixins for Moleculer
Stars: ✭ 117 (+14.71%)
Mutual labels:  moleculer
scala-http4s-realworld-example-app
Example of a RealWorld app backend powered by Scala + http4s
Stars: ✭ 35 (-65.69%)
Mutual labels:  realworld
re-frame-realword-example-app
Exemplary real world application built with Clojurescript and re-frame
Stars: ✭ 16 (-84.31%)
Mutual labels:  realworld
moleculer-go
moleculer go implementation
Stars: ✭ 17 (-83.33%)
Mutual labels:  moleculer

RealWorld Example App

Moleculer codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

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 the RealWorld repo.

Getting started

To get the Node server running locally:

  • Clone this repo
  • npm install to install all required dependencies
  • npm run dev to start the local server
  • the API is available at http://localhost:3000/api

Alternately, to quickly try out this repo in the cloud, you can

Remix on Glitch

MongoDB persistent store

Basically 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.

MONGO_URI=mongodb://localhost/conduit

Multiple instances

You 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 with gnatsd command. After it started, set the TRANSPORTER env variable and start services.

TRANSPORTER=nats://localhost:4222

To get the Node server running locally with Docker

  1. Checkout the repo git clone https://github.com/ice-services/moleculer-realworld-example-app.git

  2. cd moleculer-realworld-example-app

  3. Start with docker-compose: docker-compose up -d

    It starts all services in separated containers, a NATS server for communication, a MongoDB server for database and a Traefik reverse proxy

  4. Open the http://docker-ip:3000

  5. Scale up services

    docker-compose scale api=3 articles=2 users=2 comments=2 follows=2 favorites=2

Code Overview

Dependencies

Application Structure

  • 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.

Test

Tested with realworld-server-tester.

Local tests is missing currently.

$ npm test

In development with watching

$ npm run ci

License

This project is available under the MIT license.

Contact

Copyright (c) 2016-2017 Ice-Services

@ice-services @MoleculerJS

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].