Skip to content

Installation

Jacob Epstein edited this page May 11, 2024 · 10 revisions

Prerequisites

Have docker installed and running.

Make sure that port 5432 and 8080 are unused.

Run server and client

Running with cargo

Run Database:

cd server/database
docker-compose up

Run Server:

cargo run -p server

Run Client:

cargo run -p client

Running with binaries

cargo build --release

The executables will be located at ./target/release

Running the executables will create a file .abn_settings/Settings.toml relative to the working directory. This file can be edited to specify the server IP, the port, and the database address.

Run server:

cd ./target/release
./server

Run client:

# new terminal
cd ./target/release
./client

Server Configuration

  • Edit the hosts array in .abn_settings/Settings.toml relative to the working directory from where your server is being ran to set the IP / port. If running via double-clicking in mac finder, the working directory will be ~. In this case, settings would be located at ~/.abn_settings/Settings.toml
hosts = [
    ["127.0.0.1", 8080]
]
  • If running with cargo, Server.toml will be in the project root directory
  • If running with binaries, Server.toml will be in the same directory as the binaries
Clone this wiki locally