building modern web application with Go
- Go 1.18 or above
- Soda
- clone this repo, go to project directory
- migrate db
soda migrate up
- run script
./run.sh
- open browser
locahost:9000
- login admin email
admin@here.com
, passwordpassword
- build image
docker build -t bwago:v1.0 .
- run container
docker run --rm --env-file ./.env -p 9020:9000 bwago:v1.0
- run
docker compose up
soda migrate down -s -1
soda g sql SeedUsersTable
Test all packages
go test -coverpkg=./... ./...
Alternative command for testing
go test -v -cover ./...
Test all packages with total percentage
go test --coverprofile=coverage.out ./... && go tool cover -func=coverage.out
Test all packages with total percentage and display in the browser
go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out
- Chi Route
- Justinas nosurf
- Session package Alexedwards scs
- Popup Message sweetalert2
- Notification Notie
- vanilajs-datepicker
- go-simple-mail
this is a personal project and it is used for learning and educational purpose the content of this repo is adapted from https://www.udemy.com/course/building-modern-web-applications-with-go/