https://github.com/pavel-durov/project.template.go
Template for Go backend projects
https://github.com/pavel-durov/project.template.go
Last synced: 2 months ago
JSON representation
Template for Go backend projects
- Host: GitHub
- URL: https://github.com/pavel-durov/project.template.go
- Owner: Pavel-Durov
- License: mit
- Created: 2024-01-23T09:53:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-12T15:10:14.000Z (6 months ago)
- Last Synced: 2025-05-09T01:16:59.801Z (2 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# project.template.go
Template for Go backend projects
## Install dependencies
```shell
$ make install
```## Run the project
Start the database container:
```shell
$ make db-start
```Run application:
```shell
$ make start
```## Run test
```shell
$ make test
```## Features
- **Gin Web Framework**: Utilizes the Gin framework, a fast and lightweight web framework for Go, to handle routing, middleware, and more.- **Dependency Injection**: Demonstrates a simple setup for dependency injection to manage dependencies throughout your application.
- **Error Handling**: Includes basic error handling patterns and demonstrates how to handle errors gracefully in your application.
- **Configuration**: Provides a basic configuration setup to manage environment-specific configurations.
- **Logging**: Illustrates logging implementation using a logging library compatible with Gin.
- **Testing**: Includes a basic structure for writing tests, making it easier to ensure the reliability of your code.