Categorygithub.com/fabianToSpace/go-http-starter
modulepackage
0.0.0-20241202205758-c99ebb41ee85
Repository: https://github.com/fabiantospace/go-http-starter.git
Documentation: pkg.go.dev

# README

MIT License

Go-HTTP-Starter

This is a simple starter setup for a Golang HTTP Server application. Besides a sample setup for a HTTP Server, this starter enables the use of PostgreSQL with migrations too.

Getting started

Run the Server using go run . or build the server using go build. Besides that, you can build a docker container using the Dockerfile in this repository.

Add HTTP Endpoints

To add HTTP Endpoints to the server, you can register a new HTTP handler in the registerRoutes() function. Take the healthHandler as a starting point.

Add migrations

To add Database Migrations, you have to add a migration SQL file, that follows the scheme <number>_description.up.sql.
Migrations are automatically applied to the Database Server on the server startup.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author