Skip to content

InSeok9068/go-simple-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go 언어 기반 풀스택 서버

Host : https://toy-project.n-e.kr

구성 사용 기술
언어 Go
백엔드 프레임워크 Echo
프론트엔드 프레임워크 Htmx + Alpine.js
CSS 프레임워크 선택지 1 Pico CSS + Tailwind CSS
CSS 프레임워크 선택지 2 Beer CSS
CSS 프레임워크 선택지 3 Bulma CSS
Template 엔진 Gomponents
데이터베이스 SQLite3

추가 구성 고려

  • Pico CSS + Tailwind CSS : CSS 프레임워크 (커스터마이징)
  • Beer CSS : CSS 프레임워크 (Material)
  • Bulma CSS : CSS 프레임워크 (데스크톱 ?)
  • Tabler : 어드민과 같이 PC에서 사용하는 웹사이트라면 Tabler CSS 프레임워크도 고려
  • surreal.js : surreal.js

실행

서비스 실행

윈도우 (개발 환경)

air

리눅스

chmod +x main
./main
sudo systemctl start main.service

어드민 서버 실행

윈도우

./pocketbase.exe serve --dir ./projects/homepage/pb_data

리눅스

chmod +x pocketbase
./pocketbase serve --dir ./projects/homepage/pb_data

종속성 최신화

프로젝트 종속성 최신화

go get firebase.google.com/go/v4@latest
go get github.com/eduardolat/gomponents-lucide@latest
go get github.com/glsubri/gomponents-alpine@latest
go get github.com/go-rod/rod@latest
go get github.com/joho/godotenv@latest
go get github.com/labstack/echo-contrib@latest
go get github.com/labstack/echo/v4@latest
go get github.com/mattn/go-sqlite3@latest
go get github.com/openai/openai-go@latest
go get github.com/robfig/cron/v3@latest
go get github.com/willoma/bulma-gomponents@latest
go get github.com/willoma/gomplements@latest
go get google.golang.org/api@latest
go get google.golang.org/genai@latest
go get maragu.dev/gomponents@latest
go get maragu.dev/gomponents-htmx@latest

개발 도구 종속성 최신화

#go install github.com/a-h/templ/cmd/templ@latest
go install github.com/air-verse/air@latest
go install github.com/air-verse/air@latest
CGO_ENABLED=0 go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest

불필요한 종속성 제거

go mod tidy

GCC 활성화

Window : tdm-gcc

go env -w CGO_ENABLED=1

오류 검증

curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.63.4
golangci-lint run ./...

참고 글

https://ntorga.com/full-stack-go-app-with-htmx-and-alpinejs/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published