This repository provides a comprehensive tool for tracking the installation status of Web3 Pi image, offering real-time updates and detailed logs.
Make sure you have bun installed before running the following commands:
Install dependencies:
bun installStart the development server:
bun run devThis will start the api server and the vite development server (providing hot reloading).
To build the application, run:
bun run buildThis will first build the web application to static html js and css files, and then bundle them into a single executable. This will result in a file called app containing the static files, server code and javascript runtime.
Bun introduced a breaking change in version 1.2 that messes with the bundling process. It's recommended to use bun 1.1.45 to build the application.
Either downgrade your bun version or use the build:docker command to build the application in a docker container with the correct bun version.
To start the application run:
PORT=80 LOG_PATH=/path/to/status.txt JLOG_PATH=/path/to/installation.jlog ./appIf PORT is not specified it will default to 3000
If LOG_PATH is not specified it will default to /var/log/web3pi.log
If JLOG_PATH is not specified it will default to /opt/web3pi/status.jlog
