Skip to content

Commit

Permalink
Merge pull request #7 from maxwnewcomer/rename-repository
Browse files Browse the repository at this point in the history
feat: rename repository
  • Loading branch information
maxwnewcomer authored Sep 16, 2024
2 parents 9aeb47e + f2956cc commit 5353944
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
# Build application
COPY . .
RUN cargo build --release --package yrs-relay
RUN cargo build --release --package contactor

# We do not need the Rust toolchain to run the binary!
FROM debian:stable-slim AS runtime
Expand All @@ -21,6 +21,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl \

WORKDIR /app

COPY --from=builder /app/target/release/yrs-relay /usr/local/bin
COPY --from=builder /app/target/release/contactor /usr/local/bin

ENTRYPOINT ["/usr/local/bin/yrs-relay"]
ENTRYPOINT ["/usr/local/bin/contactor"]
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ COPY . .
EXPOSE 8001

# Command to run cargo watch
ENTRYPOINT cargo watch -w server -- cargo run --package yrs-relay
ENTRYPOINT cargo watch -w server -- cargo run --package contactor
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# yrs-relay
# contactor

A [Yjs](https://yjs.dev/) compatible, highly available, websockets server.
A distributed, eventually persisted, websocket framework.

Initially designed to be compatible [Yjs](https://yjs.dev/).

## System Design

Expand All @@ -23,7 +25,7 @@ docker compose up
To run the Tui just run

```shell
cargo run --bin yrs-relay-tui
cargo run --bin contactor-tui
```

## Deployment
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "yrs-relay"
name = "contactor"
version = "0.1.0"
edition = "2021"

Expand Down
7 changes: 4 additions & 3 deletions server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ use tokio::net::TcpListener;
use tracing::info;
use tracing::warn;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
use yrs_relay::api::ws_handler;
use yrs_relay::api::AppState;
use yrs_relay::relay::RelayNode;

use contactor::api::ws_handler;
use contactor::api::AppState;
use contactor::relay::RelayNode;

#[derive(Debug, Deserialize)]
struct AppConfig {
Expand Down
2 changes: 1 addition & 1 deletion tui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "yrs-relay-tui"
name = "contactor-tui"
version = "0.1.0"
edition = "2021"

Expand Down

0 comments on commit 5353944

Please sign in to comment.