Skip to content

Commit

Permalink
add info about "persistence", skip replaying in CI env
Browse files Browse the repository at this point in the history
  • Loading branch information
iamNoah1 committed Mar 14, 2024
1 parent 4f80f39 commit 964ab53
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Vortex

Vortex is a super simple key-value store written in Go.
Vortex is a super simple key-value store written in Go. It provides a RESTful API to create, read, update, and delete key-value pairs.

The application uses an in-memory map to store the key-value pairs. For restoring the state after a restart, the application writes the map to a file on disk. When the application starts, it reads the file and restores the map.

## Prerequisites

Expand All @@ -9,6 +11,14 @@ Vortex is a super simple key-value store written in Go.

## Running the App

### Configuration

The application uses the following environment variables for configuration:

- `TRANSACTION_LOG_FILE`: The filepath to write the transaction log to. Default is `./transactions.log`.

### Run

To run the app, navigate to the project directory and use the `go run` command:

```bash
Expand Down
4 changes: 4 additions & 0 deletions transaction/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import (
)

func TestReplayEvents(t *testing.T) {
if os.Getenv("CI") == "true" {
t.Skip("Skipping this test in CI environment.")
}

cmd := startServer(t)

data := map[string]interface{}{
Expand Down

0 comments on commit 964ab53

Please sign in to comment.