8000 GitHub - PedroBinotto/website
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PedroBinotto/website

Repository files navigation

muh website pedrobinotto.xyz

Build

Requirements

The sqlc, templ, goose, and air packages can be installed directly via Go (recommended):

go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install github.com/a-h/templ/cmd/templ@latest
go install github.com/pressly/goose/v3/cmd/goose@latest
go install github.com/air-verse/air@latest

The TailwinCSS CLI (MUST be 3.X.X) tool can be installed via the Node Package Manager (ewwww) or as a standalone binary:

# v3.4.16 Latest v3 release as of writing
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.16/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-macos-arm64 /otp/tailwindcss # assuming /opt is in your $PATH

SQLite3 is available on most package managers and can also be downloaded as a binary, built from source, etc.:

# Debian/Ubuntu
sudo apt install sqlite3

Execution

Run it natively:

# Builds the binary (PROD)
make build
# Runs it with `air` (live reload) for development
make start

Run it in a container:

make docker-run

Both will run on port 8080 by default.

TODO:

  • Automate sitemap.xml generation on build;
  • /blog/{X}:
    • setup blogs repo + CI actions;
    • fix DB indexing for files;

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0