Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

bozkurtemre/go-service-weaver-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Go Service Weaver Template πŸš€

This is a template project for creating a Service Weaver application, using sqlc and Fiber.

Packages

Databases

Architecture

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.

Repository Structure

β”œβ”€β”€ 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.toml

Getting Started

Installing dependencies

go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install github.com/ServiceWeaver/weaver/cmd/weaver@latest

Starting the services

make docker-run

Building the project

make build

Running the project

make run

Commands

Build the project:

make build

Run the project:

make run

Run the docker services:

make docker-run

Configuration

The configuration file is located at weaver.toml. You can modify the configuration settings as needed.

About

Go Service Weaver Template πŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published