Template
1
0
Fork 0
This commit is contained in:
Atridad Lahiji 2024-01-17 12:04:50 -07:00
parent f8ce4e3b48
commit c51a57d3a2
No known key found for this signature in database
3 changed files with 29 additions and 12 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
node_modules/
atri.dad
goth.stack
.env
airbin
tmp/

View file

@ -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`

View file

@ -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{