-
Notifications
You must be signed in to change notification settings - Fork 0
2. Build & Test 🔧
Building and testing is currently only supported on Windows x64 - however, some functionalities may also work on Linux or ARM.
All commands should be run from the root directory of the project (/Hosta
).
First, install the .NET 5 SDK.
Next, install Docker:
- Linux: Install Docker Engine and Docker Compose
- Windows / MacOS: Install Docker Desktop
git clone https://github.com/mileswatson/hosta.git
./scripts/test.cmd
or dotnet test src
./scripts/build.cmd
or dotnet build src
dotnet run -p src/Node YOURPATH YOURPORT
First, ensure that you have recently run the build script.
To start the node, run the following commands from the root directory of the project. Replace YOURPATH
with a path to a folder to store the node data, and YOURPORT
with a port to bind the server to (12001 recommended).
docker run --name node-dev -v YOURPATH:/app/data -p YOURPORT:12000 mileswatson/hosta:node-dev
You can exit from the docker terminal with Ctrl+C
, and then use docker stop node-dev
to halt the node. You may need to run docker rm node-dev
to restart the node.
Ensure that the client build is up to date.
./src/ClientWPF/bin/HostaClient/ClientWPF.exe
You can append a path to be used as the default directory.
To publish zip files to the /publish
directory, run the following command in the root directory of the project.
./scripts/publish.cmd