finder

command module
v0.0.0-...-1034e39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 22 Imported by: 0

README

finder

A project to bring the Finder experience to the web.

It is part of a larger project to store information in a structured way:

On a high level, finder takes a info directory and generates a static website that served via Cloudflare Pages. It also procceses the media directory and generates thumbnails sprites for all directories and images, and uploads them to Cloudflare R2 Storage.

On a lower level, finder walks the info directory, using go routines to process each YAML file concurrently. While doing so, it keeps track of all "connections" between files, to use later in go templates.

Local development

Use Make to build the static site locally:

export INPUT_INFO=/<path-to-info-directory>/info
export INPUT_MEDIA=/<path-to-media-directory>/media
export INPUT_STATIC=static
export INPUT_OUTPUT=output

make build

Use Cloudflare Wrangler to preview the site locally:

wrangler pages dev --local-protocol=https output/

Then press b that will open URL like this https://127.0.0.1:8788/ in your browser.

Documentation

Overview

A simple file browser written in Go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL