Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docs #10

Merged
merged 5 commits into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions PoshRedisViewer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.artifacts/
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,66 @@ or
Get-RedisViewer "localhost:6379" -User me -Password myPassword
```

## Development

1. Install power shell
2. Clone the GitHub repository

### Testing application

The easiest way to test the module is to run the PoshRedisViewerHost project

```
cd .\PoshRedisViewer\PoshRedisViewerHost\
dotnet run
```

### Testing as a Powershell Module

To test running as a powershell module

1. Build the repository (if building on linux use `-r linux-x64`)
```
cd PoshRedisViewer
dotnet publish -o .artifacts -r win-x64
```
2. Copy the psd1 file into the build directory
```
cp .\PoshRedisViewerModule\PoshRedisViewerModule.psd1 .\.artifacts\
```
3. Start a new powershell instance (prevents stale modules sitting around etc)
```
pwsh �noprofile
```
4. Import the module
```
Import-Module -Name ".\.artifacts\PoshRedisViewerModule.psd1"
```

## Testing With Redis Docker Image

1. Start a new Redis via docker:

```
docker run -d --name redis-stack-server -p 6379:6379 redis/redis-stack-server:latest
```

2. Connect using PoshRedisViewer

```
Get-RedisViewer "localhost:6379"
```

3. Create a Redis key entry by clicking in the 'Command' window and enter
```
set fish haddock
```

4. Query the Redis to see the key by clicking in 'KeyQuery' and pressing enter

![Screenshot showing query results fetched from Redis. Key 'fish' has value 'haddock'.](./fish-haddock.png)


TODO:
- Tabs/add to favorites
- Results filter history
Expand Down
Binary file added fish-haddock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.