mgjules-go

My personal space on the web (/◕ヮ◕)/

Stars
5
Committers
2

mgjules-go

Source code for my personal website.

Disclaimer

The website is hosted on a Raspberry pi 3b+ in Mauritius Island (in the Indian Ocean) on poor fiber optic and tunneled through a tailnet to a gateway somewhere in Europe. So don't be surprised by the 200ms+ latency badge; it's sadly expected (ఠ్ఠnఠ్ఠ) because healthcheck is done at the gateway (?◔ ω ◔)

Other than that if hosted properly in the cloud, that thing flies ─=≡Σ((( つ◕ل͜◕)つ

Background

This website has seen several iterations through the years and moved across many repositories.

This iteration has for primary goal to experiment with the idea of pre-rendering the various views and serving them from memory. Obviously it is over-engineered but that's the whole point; to experiment without limits (。•̀ᴗ-)✧

Development

Sample .env:

PROD=false
SERVER_PORT=13337
AUTH_TOKEN=a_very_long_but_obviously_fake_token
EDGEDB_DSN=edgedb://edgedb:[email protected]/myspace
DIRECTUS_URL=https://directus.mgjules.dev
DIRECTUS_TOKEN=a_very_long_but_obviously_fake_token

Run go app:

$ go run .

Run unocss-cli in watch mode:

$ npm run dev

Production

Sample .env:

PROD=true
SERVER_PORT=80
AUTH_TOKEN=a_very_long_but_obviously_fake_token
EDGEDB_DSN=edgedb://edgedb:[email protected]/myspace
DIRECTUS_URL=https://directus.mgjules.dev
DIRECTUS_TOKEN=a_very_long_but_obviously_fake_token
$ go generate
$ go build .