Skip to content

rustacean-sh/rustacean.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rustacean.sh

Rustaceans Network

Development

Running Locally

Important

Make sure you have gone through the Prerequisites section before running the following commands.

This project uses a Client ↔ Server architecture, two process (one for each of these components) should be runned in order to run the application locally.

Create a terminal session for the client, and run the following command:

just client

Then create another terminal session and navigate to the server crate

cd crates/server/

Install the dependencies using Bun

bun install

and run the following command:

just server

Prerequisites

  1. Rust
  2. Bun
  3. Justfile (optional)
  4. The wasm32-unknown-unknown toolchain
  5. worker-build binary
  6. trunk binary

Installation Guides

Rust

Rust can be installed by running the following command in your terminal:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Then install the wasm32-unknown-unknown toolchain by running:

rustup target add wasm32-unknown-unknown

Bun

Bun can be installed by running the following command in your terminal:

curl -fsSL https://bun.sh/install | bash

Rust Binaries

Justfile can be installed by running the following command in your terminal:

cargo install just

Worker Build can be installed by running the following command in your terminal:

cargo install worker-build

Trunk can be installed by running the following command in your terminal:

cargo install trunk

Read more here: https://developers.cloudflare.com/workers/languages/rust/