gofiber-templ-htmx
Go/Fiber๐งฌ+</>Templ to-do list app with user login and HTMx-powered frontend.
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- styles.css
- gopher-svgrepo-com.svg
- screenshot-1.png
- screenshot-2.png
- screenshot-3.png
- screenshot-4.png
- screenshot-5.png
- screenshot-6.png
- auth_handlers.go
- routes.go
- todo_handlers.go
- db.go
- todo_model.go
- user_model.go
- login.templ
- register.templ
- flashmessages_partial.templ
- navbar_partial.templ
- create.templ
- todo.list.templ
- update.templ
- base_layout.templ
- error_404.templ
- error_500.templ
- home.templ
- .air.toml
- .gitignore
- go.mod
- go.sum
- LICENSE
- main.go
- README.md
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/emarifer/gofiber-templ-htmx
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd gofiber-templ-htmx
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Go
๋ณดํต ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
$ go build -ldflags="-s -w" -o ./bin/main . # ./bin/main to run the application / Ctrl + C to stop the application
Go ํ๋ก๊ทธ๋จ์ ์ปดํ์ผํด ์คํ ํ์ผ์ ๋ง๋ญ๋๋ค.
$ go install github.com/a-h/templ/cmd/templ@latest
์ด ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ๊ทธ๋๋ก ์ ๋ ฅํด ์คํํ์ธ์.
๋น๋๊ฐ ์๋ฌ ์์ด ๋๋๋ฉด ์ฑ๊ณต์
๋๋ค. go run . ์ ์ผ๋ค๋ฉด ํฐ๋ฏธ๋ ์ถ๋ ฅ์ ํ์ธํ์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
