This is a template project for creating a Service Weaver application, using sqlc and Fiber.
This template was inspired by Clean Architecture and offers templates that follow its core concepts. The templates provided facilitate the creation of modular, maintainable, and testable codebases by promoting a clear separation of concerns and the independence of business logic from external dependencies. By using this templates, developers can jumpstart their projects with a well-organized structure that aligns with Clean Architecture, enabling them to focus on implementing the domain-specific logic while adhering to best practices. This template empowers developers to build robust and scalable applications, leveraging the benefits of Clean Architecture for easier understanding, maintenance, and evolution over time.
βββ bin
β βββ app
βββ cmd
β βββ app
β βββ main.go
βββ deployments
β βββ compose.yml
βββ docs
βββ internal
β βββ example
β β βββ db
β β β βββ query.sql
β β β βββ schema.sql
β β β βββ sqlc.yaml
β β βββ store
β β β βββ db.go
β β β βββ models.go
β β β βββ query.sql.go
β β βββ entity.go
β β βββ service.go
β β βββ weaver_gen.go
β βββ frontend
β βββ frontend.go
β βββ router.go
β βββ weaver_gen.go
βββ scripts
βββ go.mod
βββ go.sum
βββ Makefile
βββ weaver.tomlgo install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install github.com/ServiceWeaver/weaver/cmd/weaver@latestmake docker-runmake buildmake runBuild the project:
make buildRun the project:
make runRun the docker services:
make docker-runThe configuration file is located at weaver.toml. You can modify the configuration settings as needed.