My personal website
Files
README.md

hiijax.net #

Jax's homepage on the net.

Developing #

I personally like installing node LTS with my system package manager (dnf or winget), then installing pnpm with corepack.

# clone and enter the repo
git clone https://tangled.org/hiijax.net/hiijax.net
cd hiijax.net

# install dependencies
pnpm install

# start the dev server
pnpm dev

Data Directories #

Read-Only #

/static - Public static assets /config - Private data to be read by the server

Read-Write #

/cache - Public assets that are generated by the server (technically optional) /data - Private folder the server can write to

Original images for the gallery should be stored at:

/static/original/[slug].[ext]

They will be converted when the hook is first run. You might need to browse to the site to trigger this and it might take some time. Do this preemtively so the first visitor doesn't have to wait forever lol

Production #

For testing a production build locally, use podman:

# build the image
podman build -t hiijax.net .

# run the image
podman run -v ./static:/app/static:Z -v ./data:/app/data:Z -v ./cache:/app/cache:Z -v ./config:/app/config:Z -p 3000:3000 hiijax.net

Since this is just a personal website, Tangled pipelines automatically build and overwrite the :latest tag in the container registry.

The is how the production container is typically run with docker-compose.

services:
  hiijax.net:
    image: "atcr.io/hiijax.net/hiijax.net:latest"
    ports: "3000:3000"
    volumes:
      - ./static:/app/static:ro
      - ./config:/app/config:ro
      - ./data:/app/data
      - ./cache:/app/cache

Credits #