Skip to content

Web3-Pi/installation-status

Repository files navigation

Installation status page

This repository provides a comprehensive tool for tracking the installation status of Web3 Pi image, offering real-time updates and detailed logs.

screenshot of the installation status page

Development

Make sure you have bun installed before running the following commands:

Install dependencies:

bun install

Start the development server:

bun run dev

This will start the api server and the vite development server (providing hot reloading).

Build

To build the application, run:

bun run build

This 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.

Compatibility note

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.

Run in production

To start the application run:

PORT=80 LOG_PATH=/path/to/status.txt JLOG_PATH=/path/to/installation.jlog ./app

If 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

About

Web application to monitor the installation status

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors