diff --git a/.gitignore b/.gitignore index 4bb2baf..65eac9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules/ -atri.dad +goth.stack .env airbin tmp/ diff --git a/README.md b/README.md index cd0c7be..6cc4754 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ -# goth-stack +# GOTH Stack Go + Templates + HTMX + +## Stack: +- Backend: Golang + Echo +- Rendering: Golang templates +- Style: TailwindCSS + DaisyUI +- Content format: Markdown + +## Requirements: +- Bun (only to build styles) +- Golang 1.21.6 or newer + +## Instructions: +1. Run go get +2. Duplicate the .env.example file and call it .env +3. Fill out the .env values +4. Run ```go install github.com/cosmtrek/air@latest``` to download Air for live reload +5. Run ```air``` to start the dev server + +## Tests +Without Coverage: `go test atri.dad/lib` +With Coverage: `go test atri.dad/lib -cover` \ No newline at end of file diff --git a/pages/home.go b/pages/home.go index b25caa2..d347745 100644 --- a/pages/home.go +++ b/pages/home.go @@ -9,11 +9,9 @@ import ( ) type HomeProps struct { - Socials []lib.IconLink - Tech []lib.IconLink - ContractLink string - ResumeURL string - SupportLink string + Socials []lib.IconLink + Tech []lib.IconLink + // Add more props here } func Home(c echo.Context) error { @@ -54,11 +52,9 @@ func Home(c echo.Context) error { } props := HomeProps{ - Socials: socials, - Tech: tech, - ContractLink: "mailto:contract@atri.dad", - ResumeURL: "https://srv.atri.dad/Atridad_Lahiji_Resume.pdf", - SupportLink: "https://donate.stripe.com/8wMeVF25c78L0V2288", + Socials: socials, + Tech: tech, + // Add more props here } templates := []string{