• This repository has been archived on 28/Sep/2022
  • Stars
    star
    103
  • Rank 321,883 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Exemplary real world application built with 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

More Repositories

1

realworld

"The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
TypeScript
78,236
star
2

react-redux-realworld-example-app

Exemplary real world application built with React + Redux
JavaScript
5,538
star
3

angular-realworld-example-app

Exemplary real world application built with Angular
TypeScript
5,079
star
4

vue-realworld-example-app

An exemplary real-world application built with Vue.js, Vuex, axios and different other technologies. This is a good example to discover Vue for beginners.
JavaScript
4,053
star
5

node-express-realworld-example-app

TypeScript
3,524
star
6

golang-gin-realworld-example-app

Exemplary real world application built with Golang + Gin
Go
2,440
star
7

aspnetcore-realworld-example-app

ASP.NET Core backend implementation for RealWorld
C#
1,872
star
8

django-realworld-example-app

Python
1,593
star
9

spring-boot-realworld-example-app

Example Spring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.
Java
1,252
star
10

react-mobx-realworld-example-app

Exemplary real world application built with React + MobX
JavaScript
1,245
star
11

laravel-realworld-example-app

Exemplary real world backend API built with Laravel
PHP
1,186
star
12

flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
Python
891
star
13

elixir-phoenix-realworld-example-app

Exemplary real world application built with Elixir + Phoenix
Elixir
887
star
14

angularjs-realworld-example-app

Exemplary real world application built with Angular 1.5 + ES6
JavaScript
450
star
15

kotlin-spring-realworld-example-app

Kotlin
443
star
16

slim-php-realworld-example-app

Exemplary real world application built with Slim
PHP
428
star
17

rails-realworld-example-app

Ruby
427
star
18

realworld-starter-kit

Starter kit for new RealWorld framework implementations
407
star
19

swift

A better way to learn swift.
274
star
20

koa-knex-realworld-example

JavaScript
241
star
21

aurelia-realworld-example-app

Exemplary real world application built with Aurelia
JavaScript
184
star
22

ember-realworld

Ember.js RealWorld Implementation
JavaScript
182
star
23

web-components-realworld-example-app

Exemplary real world application built with Vanilla JS Web Components
JavaScript
171
star
24

scala-play-realworld-example-app

Exemplary real world application built with Scala 2.13 & Play
Scala
154
star
25

node-express-prisma-v1-official-app

Official real world application built with Node + Express + Typescript + Prisma
TypeScript
147
star
26

gcp-datastore-cloud-functions-realworld-example-app

Serverless GCP Cloud Functions + Datastore implementation of RealWorld Backend
JavaScript
144
star
27

cakephp-realworld-example-app

PHP
105
star
28

clojurescript-reframe-realworld-example-app

Exemplary real world application built with ClojureScript + re-frame
Clojure
102
star
29

apprun-realworld-example-app

Exemplary real world application built with AppRun
TypeScript
101
star
30

fsharp-realworld-example-app

Exemplary real world application built with F#
F#
95
star
31

hapijs-realworld-example-app

Real World Hapi.JS + Mongoose backend implementations
JavaScript
78
star
32

clojurescript-keechma-realworld-example-app

Exemplary real world application built with ClojureScript & Keechma
Clojure
72
star
33

reasonml-realworld-example-app

Exemplary real world application built with ReasonML
Reason
59
star
34

conduit-bootstrap-template

HTML
33
star
35

dojo-realworld-example-app

Exemplary real world application built with Dojo2
TypeScript
29
star
36

angularfire-slack

JavaScript
27
star
37

QEWD-realworld-example-app

JavaScript
22
star
38

crizmas-mvc-realworld-example-app

Exemplary real world application built with Crizmas MVC (React)
JavaScript
17
star
39

express-prisma-official-app

TypeScript
14
star
40

jswiki

The wiki for modern Javascript terminology
HTML
13
star
41

conduit-angularjs-final

JavaScript
10
star
42

conduit-sass

HTML
8
star
43

conduit-django

Python
8
star
44

thinkdown

Preview markdown as it appears on https://thinkster.io
CSS
6
star
45

test-routes

JavaScript
6
star
46

conduit-react-client-final

JavaScript
4
star
47

conduit-rails4-api-final

Ruby
4
star
48

course-boilerplate

3
star
49

mean-stack-tutorial

3
star
50

realworld-api-action

GitHub Action running a Postman collection to test the compliance of a backend implementation of RealWorld specs
JavaScript
3
star
51

api-realworld

TypeScript
2
star
52

gothinkster.github.io

HTML
2
star
53

conduit-rails4

Ruby
2
star
54

conduit-rails

Ruby
2
star
55

conduit-angular

HTML
1
star
56

thinkster-author

Authoring site for Thinkster.io Authors
1
star
57

blog

Thinkster blog
1
star
58

imperial

JavaScript
1
star
59

conduit-api

TypeScript
1
star
60

transactional

1
star
61

realworld-e2e-tests

E2e test suite for RealWorld demo
JavaScript
1
star
62

realworld-tribe-angular-app

HTML
1
star
63

realworld-tribe-nestjs-app

TypeScript
1
star