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

feat: rename repository #7

Merged
merged 2 commits into from
Sep 16, 2024
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
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