Skip to content

Commit

Permalink
feat(redis-commander): add redis commander and cleanup based on guide…
Browse files Browse the repository at this point in the history
…lines
  • Loading branch information
Mr0nline authored and coolaj86 committed Oct 16, 2023
1 parent 7e6367e commit 00b9acc
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
48 changes: 48 additions & 0 deletions redis-commander/README.md
Original file line number Diff line number Diff line change
@@ -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!
13 changes: 13 additions & 0 deletions redis-commander/install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 00b9acc

Please sign in to comment.