Skip to content

Commit

Permalink
Add NATS support and improve WebSocket handling
Browse files Browse the repository at this point in the history
This update adds NATS support, including installation instructions, connection setup, and message handling. It also refines WebSocket handling by organizing message processing and ensuring proper resource cleanup.
  • Loading branch information
arkavo-com committed Aug 3, 2024
1 parent f132e27 commit fd742b1
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 104 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Implementation of KAS from [OpenTDF specification](https://github.com/opentdf/sp

- Rust (latest stable version)
- `cargo` package manager
- NATS

```bash
brew install nats-server
```

### Installation

Expand Down Expand Up @@ -84,13 +89,19 @@ export RUST_LOG=info
Remember to keep your private keys secure and never commit them to version control systems. It's recommended to use
environment variables or secure vaults for managing sensitive information in production environments.
2. Start the server:
#### Start internal services
```shell
cargo run
```
```shell
nats-server
```
#### Start backend
```shell
cargo run
```
The server will start and listen on the configured port (default: 8443) using HTTPS.
The server will start and listen on the configured port.
### Usage
Expand Down
Loading

0 comments on commit fd742b1

Please sign in to comment.