Skip to content

A small web server that serves a landing page for collection of devices.

License

Notifications You must be signed in to change notification settings

Lixquid/deno-starburst-landingpage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starburst Landing Page

A small web server that serves a landing page for a collection of devices.

Supports pinging devices for availability, and sending wake-on-lan packets.

Useful for home networks with a collection of devices that can be accessed remotely and are not always on, like desktops and laptops.

Requirements

Getting Started

Docker

If you want to support wake-on-lan, run the /scripts/hash_password.ts script to generate a password hash and salt.

docker run --rm -it -v ghcr.io/lixquid/starburst-landingpage:latest deno run --allow-env /scripts/hash_password.ts
  1. Copy the backend/config.example.json file to config.json, and update the values as needed.

  2. Run the server.

    docker run -v "$(pwd)/config.json:/app/config.json" -p 8080:8080 ghcr.io/lixquid/starburst-landingpage:latest

From Source

If you want to support wake-on-lan, run the scripts/hash_password.ts script to generate a password hash and salt.

deno run --allow-env scripts/hash_password.ts
  1. Run the scripts/package_frontend.ts script to build and package the frontend into the correct locations in the backend.

    deno run --allow-read --allow-write --allow-run scripts/package_frontend.ts
  2. Copy the backend/config.example.json file to backend/config.json, and update the values as needed.

  3. Run the server.

    cd backend
    deno run --allow-net --allow-read --unstable main.ts

For more information, all scripts and the server support the --help flag.

Developer Documentation

Preparing a new release

  1. Create an entry in CHANGELOG.md.
  2. Update the README.md file as needed.
  3. Commit with Version x.y.z as the commit message.
  4. Tag the commit with vX.Y.Z.
  5. docker build -t x .
  6. docker tag x ghcr.io/lixquid/starburst-landingpage:latest
  7. docker tag x ghcr.io/lixquid/starburst-landingpage:X.Y.Z
  8. docker push ghcr.io/lixquid/starburst-landingpage:latest
  9. docker push ghcr.io/lixquid/starburst-landingpage:X.Y.Z

About

A small web server that serves a landing page for collection of devices.

Topics

Resources

License

Stars

Watchers

Forks