mirror of
https://github.com/acaloiaro/garbagespeak.com
synced 2026-07-21 10:12:19 +00:00
Update README.md
This commit is contained in:
parent
535ccce539
commit
513609937b
1 changed files with 35 additions and 4 deletions
39
README.md
39
README.md
|
|
@ -1,18 +1,49 @@
|
|||
# Garbage Speak
|
||||
|
||||
A fun and useless website
|
||||
A fun, dumb, and ultimately useless website inspired by this [tour de force](https://www.vulture.com/2020/02/spread-of-corporate-speak.html)
|
||||
|
||||
## Migrations
|
||||
## 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
|
||||
|
||||
Migrations required `go-migrate` to be run locally:
|
||||
|
||||
`go install github.com/golang-migrate/migrate@v4`
|
||||
|
||||
### Adding migrations
|
||||
#### Adding migrations
|
||||
|
||||
`migrate create -ext sql -dir migrations -seq name_of_migration`
|
||||
|
||||
### Running migrations
|
||||
#### Running migrations
|
||||
|
||||
Migrate up
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue