a demo for building web application in Go
- Dependency Injection - Wire
- HTTP Web Framework - Gin
- Session Management - Gin-Session, Redis
- Database ORM - Gorm
- Database - Postgres
- Load Configuration - Viper
- SameSite (LAX Mode): cookies are sent when the request is navigating to the original site
- Secure: cookies only sent when using https connection
- HttpOnly: client side cannot touch the cookies
go to .postgres
directory and run:
export POSTGRES_PASSWORD=your password
docker-compose up -d
please use Docker to install the Redis image
configure your database host, username and password at dev.env