Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fasunle/golang-starters
Have different starter projects for backend server with docker fully setup
https://github.com/fasunle/golang-starters
Last synced: 2 days ago
JSON representation
Have different starter projects for backend server with docker fully setup
- Host: GitHub
- URL: https://github.com/fasunle/golang-starters
- Owner: Fasunle
- Created: 2024-09-06T08:01:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T17:20:47.000Z (5 months ago)
- Last Synced: 2024-09-06T20:43:34.211Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Stater Kit
This is a starter kit for golang projects. The aim of this project is to provide a starting point for golang projects. This increase the development speed as it reduces the setup time.
It should be noted that this project is not a framework. It is a starter kit which utilize go-chi as a router and middleware. It setup http router by default on th e main branch but other variants can be access in the branches.
For default setup, use the main branch as follows:
```bash
git clone https://github.com/Fasunle/golang-starter-kit.git && rm -rf .git```
For installations, other than the default, you just need to specify the target branch other than main:
```bash
git clone -b TARGET-BRANCH https://github.com/Fasunle/golang-starter-kit.git && rm -rf .git```
## Folder Structure
`cmd/api/main.go` - This is the entry point of the application. It is responsible for starting the server and listening for requests.
`cmd/handlers/` - This is the folder where all the route handlers are stored.
`cmd/routes/` - This is the folder where all the routes are stored.
`cmd/api` - folder is specifically reserved for business logic.