An open API service indexing awesome lists of open source software.

https://github.com/pubkey/rxdb-mongodb-sync-example

Example Repo that runs the RxDB-MongoDB Replication https://rxdb.info/replication-mongodb.html
https://github.com/pubkey/rxdb-mongodb-sync-example

Last synced: 3 months ago
JSON representation

Example Repo that runs the RxDB-MongoDB Replication https://rxdb.info/replication-mongodb.html

Awesome Lists containing this project

README

          

# RxDB MongoDB Sync Example

Example Repo that runs the RxDB-MongoDB Replication.

## Architecture

This repository spawns a docker container with MongoDB, an instance of [RxServer](https://rxdb.info/rx-server.html) and a frontend app with a simple todo-list.

![MongoDB RxServer Sync](./files/archi.png "MongoDB RxServer Sync")

## Prerequisites

- Ensure you have installed Docker
- Ensure you have installed Node.js in version 22 or newer

## Starting this Project

- Clone the repository
- Run `npm install`
- Run `npm run mongodb:start` (leave that console open)
- In a fresh console run `npm run mongodb:init` (this creates the MongoDB Database and Collection)
- In a fresh console run `npm run rx-server` (leave that console open)
- In a fresh console run `npm run frontend` (leave that console open)
- Open [http://localhost:8080/](http://localhost:8080/) in your browser. Use Incognito Tabs to simulate multiple devices.