replica-failover-mongodb-ts 2.0.4 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +5 -0
  2. package/Readme.md +32 -1
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,5 @@
1
+ Copyright (c) 2025 João Ito
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/Readme.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Node Balancer
2
2
 
3
+ [![NPM Version](https://img.shields.io/npm/v/replica-failover-mongodb-ts?style=flat-square)](https://www.npmjs.com/package/replica-failover-mongodb-ts)
4
+ [![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)
5
+ [![Node.js](https://img.shields.io/badge/Node.js-20.x-green)](https://nodejs.org/)
6
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue)](https://www.typescriptlang.org/)
7
+
8
+ ## 🚀 Quick Start (Dashboard CLI)
9
+
10
+ Se você quer apenas rodar o painel de controle visualmente:
11
+
12
+ ```bash
13
+ npm install -g replica-failover-mongodb-ts
14
+ node-balancer-dashboard
15
+ ```
16
+
17
+ ---
18
+
3
19
  ## Sobre o Projeto: "Node Balancer"
4
20
 
5
21
  O Node Balancer é uma API escalável construída utilizando Node.js, MongoDB com replica set para alta disponibilidade, e Nginx como balanceador de carga. O sistema foi projetado para garantir resiliência, escalabilidade e alta disponibilidade. A arquitetura permite a adição manual de instâncias backend (Node.js) e garante que, em caso de falhas, o sistema continue operando sem interrupções, com a replicação automática dos dados e balanceamento de carga eficiente.
6
22
 
7
23
  ## Arquitetura - Diagrama ilustrativo
8
24
 
9
- ![img.png](docs/images/diagramEscale.png)
25
+ [![DiagramaScale](docs/images/diagramEscale.png)](https://raw.githubusercontent.com/JoaoIto/node-balancer/refs/heads/main/docs/images/diagramEscale.png)
10
26
 
11
27
  ## Sumário
12
28
 
@@ -185,3 +201,18 @@ Se você está utilizando o **MongoDB replica set**, certifique-se de que o repl
185
201
  ```javascript
186
202
  rs.status();
187
203
  ```
204
+
205
+ ---
206
+
207
+ ## Autor
208
+
209
+ | [<img src="https://github.com/JoaoIto.png" width="100px;" alt="João Ito"/>](https://github.com/JoaoIto) |
210
+ | :---: |
211
+ | **João Ito** |
212
+ | [GitHub](https://github.com/JoaoIto) • [Email](mailto:joaovictorpfr@gmail.com) |
213
+
214
+ Feito com ❤️ por João Ito. Entre em contato!
215
+
216
+ ## Licença
217
+
218
+ Este projeto está licenciado sob a licença ISC - veja o arquivo [LICENSE](LICENSE) para detalhes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replica-failover-mongodb-ts",
3
- "version": "2.0.4",
3
+ "version": "2.1.7",
4
4
  "description": "O sistema replica um dos conceitos básicos da arquitetura de sistemas distribuído, na qual ele tem uma API em express.js com TypeScript, e usando o mongoDB com replicaSET e failover, consegue automáticamente garantir disponibilidade e redundância de dados das requisições.",
5
5
  "main": "dist/server.js",
6
6
  "types": "dist/server.d.ts",