alnoda-workspaces/workspaces/redis-workspace/removeme_docs/getting-started.md
2022-05-23 19:06:43 +00:00

2.5 KiB

Get started

This doc has examples how to use workspace to interact with Redis.

In examples we use local Redis that is running inside the workspace, but the commands apply to any Redis instance.

Tutorial

Open Quickstart page localhost:8020 for quick access to all the tools

Redis WID

Use workspace terminal localhost:8026 and load some Redis datasets

git clone https://github.com/redis-developer/redis-datasets.git /home/project/redis-datasets
cat /home/project/redis-datasets/movie-database/import_actors.redis | redis-cli 
cat /home/project/redis-datasets/movie-database/import_movies.redis | redis-cli 

GUI

Open Redis Commander UI on localhost:8029 and explore Redis databases

Redis commander

Alternatively use browser-based VS-code localhost:8025 with Redis extension

Theia

CLI tools

If you prefer working in the terminal, explore Redis with Redis-Tui. To connect to the internal Redis instance simply execute

redis-tui

Redis TUI

To interact with internal Redis, inn the workspace terminal launch iredis CLI, get & set keys

iredis

Iredis

Iredis has autocompletion and hints, which might be handy for administrative tasks

iredis --newbie

Iredis-newbie

Create dump of the Redis database

redis-dump-go -h localhost > /home/redis-movie-dump.resp 

Use File Browser localhost:8021 to get the dump to your PC