A dynamic webpage for persinal branding with a headless CMS behind it
  • TypeScript 37.6%
  • Svelte 36.2%
  • CSS 17.5%
  • JavaScript 3.1%
  • Nix 2.7%
  • Other 2.9%
Find a file
2026-04-02 20:28:58 +13:00
backend glitch: add 2026-03-30 16:55:43 +13:00
nix db: add pgdump 2026-03-11 13:58:12 +13:00
src destroy eater egg: add 2026-03-30 17:04:33 +13:00
static experiences: add a bunch 2026-03-30 12:48:59 +13:00
.gitignore gitignore : ignore result 2026-02-13 16:45:44 +13:00
.npmignore ignore db 2025-12-18 10:29:00 +13:00
.npmrc init 2025-12-12 01:47:49 +13:00
.prettierignore init 2025-12-12 01:47:49 +13:00
.prettierrc init 2025-12-12 01:47:49 +13:00
bun.lock init 2025-12-12 01:47:49 +13:00
database.sql nix-config: no doc 2026-04-02 20:28:58 +13:00
eslint.config.js init 2025-12-12 01:47:49 +13:00
file.txt glitch: add 2026-03-30 16:55:43 +13:00
flake.lock flake: add pg 2025-12-17 20:28:51 +13:00
flake.nix db: add pgdump 2026-03-11 13:58:12 +13:00
package-lock.json fix SSG 2026-01-01 16:43:28 +13:00
package.json fix SSG 2026-01-01 16:43:28 +13:00
README.md db: extract 2026-01-01 22:36:57 +13:00
svelte.config.js favicon: fix and images: prefetch 2026-01-01 19:48:13 +13:00
tsconfig.json init 2025-12-12 01:47:49 +13:00
vite.config.ts favicon: fix and images: prefetch 2026-01-01 19:48:13 +13:00

Home page

My personal branding home page.

Dev

Dev env

# load environment and dependencies
nix develop

# install nodejs packages
npm i 

# Initialize a PG instance (from root of project)
pginit

# Start DB 
pgstart

# Create user and DB
pgconfigure

# Run backend ...
cd backend
npm run dev 

# ...or frontend 
npm run dev

Change content at localhost:3000 and inspect changes at localhost:5173

Prepare for release

As the content is loaded at build time and what's put online is a simple static site, you need to have the db's content when building. If building elsewhere than dev machine, DB needs to be exported before with pgdump.

Production

Add project as nix flake input. import the module and enable the package. It will all be built from source by nix.

{
    services.homepage = {
        enable = true;
    };
}