mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
feat(redis-commander): add redis commander and cleanup based on guidelines
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Redis Commander
|
||||
homepage: https://joeferner.github.io/redis-commander/
|
||||
tagline: |
|
||||
Redis-Commander is a node.js web application used to view, edit, and manage a Redis Database.
|
||||
---
|
||||
|
||||
To update or switch versions, run `npm install -g redis-commander@latest`.
|
||||
|
||||
### Files
|
||||
|
||||
These are the files / directories that are created and/or modified with this
|
||||
install:
|
||||
|
||||
```text
|
||||
~/.config/envman/PATH.env
|
||||
~/.local/opt/node/bin/redis-commander
|
||||
```
|
||||
|
||||
If [`node`](/node) is not found, it will also be installed.
|
||||
|
||||
## Cheat Sheet
|
||||
|
||||
> Web-UI to display and edit data within multiple different Redis servers. It
|
||||
> has support for the following data types to view, add, update and delete data:
|
||||
|
||||
- Strings
|
||||
- Lists
|
||||
- Sets
|
||||
- Sorted Set
|
||||
- Streams (Basic support based on HFXBus project from
|
||||
https://github.com/exocet-engineering/hfx-bus, only view/add/delete data)
|
||||
- ReJSON documents (Basic support, only for viewing values of ReJSON type keys)
|
||||
|
||||
List available commands:
|
||||
|
||||
```sh
|
||||
redis-commander --help
|
||||
```
|
||||
|
||||
Start redis commander with default settings:
|
||||
|
||||
```sh
|
||||
redis-commander
|
||||
```
|
||||
|
||||
This will open up web app at `http://127.0.0.1:8081` and will be connected to
|
||||
local redis server at default port!
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -u
|
||||
|
||||
__init_redis_commander() {
|
||||
if [ -z "$(npm --version 2> /dev/null)" ]; then
|
||||
"$HOME/.local/bin/webi" node
|
||||
export PATH="$HOME/.local/opt/node/bin:$PATH"
|
||||
fi
|
||||
npm install -g redis-commander@latest
|
||||
}
|
||||
|
||||
__init_redis_commander
|
||||
Reference in New Issue
Block a user