Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anhcaooo/go-web-server-template-generator
CLI tool to create Go web server
https://github.com/anhcaooo/go-web-server-template-generator
cli docker golang
Last synced: about 1 month ago
JSON representation
CLI tool to create Go web server
- Host: GitHub
- URL: https://github.com/anhcaooo/go-web-server-template-generator
- Owner: AnhCaooo
- Created: 2024-08-23T16:10:34.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-01T12:40:00.000Z (4 months ago)
- Last Synced: 2024-11-15T22:12:00.125Z (about 1 month ago)
- Topics: cli, docker, golang
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Web Server generator
A CLI tool to generate web server in [Go](https://go.dev/). The purpose of this tool is to save time for developers when they initialize the web server which is using Go.## General info
This CLI helps generate a web server based on my preference template which I have learned through self-referencing and the time I have been working with Go. This template is also inspired from these GitHub repositories:
- [project-layout](https://github.com/golang-standards/project-layout)
- [go-nuts](https://github.com/francisco3ferraz/go-nuts)This CLI tool will not only generate a web server, it will also provide a default Dockerfile configuration which you could use right way to build your own image.
## Quick start
Clone the project. Navigate to the project and run the following command
```bash
go run main.go
```
This will ask for where your project is located and your Go Module path.### Tech stacks
- Web server framework: [gorilla/mux](https://github.com/gorilla/mux)
- Logging framework: [zap](https://github.com/uber-go/zap)## Changelog
- 1.0.0 - The first version. All basic features are working. However, currently, after the project is initialized, you, the consumer have to manually remove all 'template'import dependencies. In next version, maybe this will be handled automatically