feat: Add Docker Compose configuration for PostgreSQL and update database credentials in main.go
This commit is contained in:
@@ -26,12 +26,12 @@ import (
|
||||
|
||||
// @x-extension ulid.ULID string
|
||||
|
||||
// @Summary Say hello
|
||||
// @Description Get a hello message
|
||||
// @ID hello
|
||||
// @Produce plain
|
||||
// @Success 200 {string} string "Hello from the Time Tracker Backend!"
|
||||
// @Router / [get]
|
||||
// @Summary Say hello
|
||||
// @Description Get a hello message
|
||||
// @ID hello
|
||||
// @Produce plain
|
||||
// @Success 200 {string} string "Hello from the Time Tracker Backend!"
|
||||
// @Router / [get]
|
||||
func helloHandler(c *gin.Context) {
|
||||
c.String(http.StatusOK, "Hello from the Time Tracker Backend!")
|
||||
}
|
||||
@@ -41,9 +41,9 @@ func main() {
|
||||
dbConfig := models.DatabaseConfig{
|
||||
Host: "localhost",
|
||||
Port: 5432,
|
||||
User: "postgres",
|
||||
User: "timetracker",
|
||||
Password: "password",
|
||||
DBName: "mydatabase",
|
||||
DBName: "timetracker",
|
||||
SSLMode: "disable", // For development environment
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user