Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,82 @@ valkey-admin
### Manual Connection
Once the app is running, manually add a connection to your cluster (default local cluster is usually `localhost:7001`).

## Getting Started

### Prerequisites
- nodejs version v20+

### First install the dependencies
```sh
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
dnf install -y nodejs
```

### Then download source and install dependencies
```sh
cd /opt
git clone https://github.com/valkey-io/valkey-admin.git
cd valkey-admin
npm install
```

### Setting up external access in valkey-admin's apps
Manually configure valkey-admin's front-end and server.

vite.config.ts
```sh
cat > apps/frontend/vite.config.ts << 'EOF'
import { defineConfig } from "vite"
import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"

export default defineConfig({
base: "./",
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@common": path.resolve(__dirname, "../../common"),
},
},
server: {
host: "0.0.0.0",
port: 5173,
},
})
EOF
```

server/index.ts
```sh
sed -i "s/WebSocketServer({ port: 8080 })/WebSocketServer({ host: '0.0.0.0', port: 8080 })/" \
apps/server/src/index.ts
```

wsEpics.ts (Configure external access in valkey-admin's apps)
```sh
sed -i 's|ws://localhost:8080|ws://YOUR_IP:8080|' \
apps/frontend/src/state/epics/wsEpics.ts
```

### Run valkey-admin
```sh
# foreground
npm run dev

# background
nohup npm run dev > /var/log/valkey-admin.log 2>&1 &
```

### Access to the valkey-admin
```sh
valkey-admin WebUI: http://YOUR_IP:5173
Connection Settings:
Host: 127.0.0.1
Port: 6380 (Valkey port)
```

## Contributing
Interested in improving Valkey Admin? Please see our [CONTRIBUTING.md](./CONTRIBUTING.md) for environment setup, WSL instructions, and development workflows.

Expand Down
Loading