garbagespeak.com/README.md

56 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2026-07-19 15:31:52 +00:00
**NOTICE**: This repository has been moved to [https://code.adriano.fyi/me/garbagespeak.com](https://code.adriano.fyi/me/garbagespeak.com). Microsoft has shown little interest in stewarding what was once the best and largest open source community. This small act of migration is my way showing that we don't all support Microsoft's disinterest.
2023-07-29 16:36:24 +00:00
# Garbage Speak
2023-07-25 19:48:30 +00:00
2023-09-09 08:00:54 +00:00
A fun, dumb, and ultimately useless website inspired by this [tour de force on corporate garabe speak](https://www.vulture.com/2020/02/spread-of-corporate-speak.html).
2023-07-25 19:48:30 +00:00
2023-07-31 15:14:33 +00:00
## About
This site started as a more robust proof of concept for creating dynamic Hugo sites with htmx and Go.
Write up detailing the concept https://adriano.fyi/posts/2023/2023-07-04-making-hugo-static-sites-dynamic-with-htmx-and-go/
The template from which this site is built https://github.com/acaloiaro/hugo-htmx-go-template/
## Dev
This README is very much still a WIP.
### Getting Started
To get started, fetch dependencies and build the dev tools.
```
bin/fetch-deps.sh
go build -o bin/develop internal/cmd/develop/main.go
go build -o bin/build internal/cmd/build/main.go
mkdir public && touch public/.empty
```
**Running in dev**
`bin/develop`
**Build fat binary**
`bin/build`
### Migrations
2023-07-25 19:48:30 +00:00
2023-07-31 15:23:48 +00:00
Migrations require `go-migrate` to be run locally:
2023-07-25 19:48:30 +00:00
2023-07-29 16:36:24 +00:00
`go install github.com/golang-migrate/migrate@v4`
2023-07-25 19:48:30 +00:00
2023-07-31 15:14:33 +00:00
#### Adding migrations
2023-07-25 19:48:30 +00:00
2023-07-29 16:36:24 +00:00
`migrate create -ext sql -dir migrations -seq name_of_migration`
2023-07-25 19:48:30 +00:00
2023-07-31 15:14:33 +00:00
#### Running migrations
2023-07-25 19:48:30 +00:00
2023-07-29 16:36:24 +00:00
Migrate up
2023-07-25 19:48:30 +00:00
2023-07-29 16:36:24 +00:00
`migrate -database ${POSTGRESQL_URL} -path migrations up`
2023-07-25 19:48:30 +00:00
2023-07-29 16:36:24 +00:00
Migrate down
2023-07-25 19:48:30 +00:00
2026-07-19 15:31:52 +00:00
`migrate -database ${POSTGRESQL_URL} -path migrations down`