No description
Find a file
2024-11-24 14:04:53 +01:00
.vscode added legal sites: datenschutz and impressum 2024-11-14 01:08:30 +01:00
backend fixed bug in post submitting 2024-11-24 14:04:53 +01:00
client added comment / question function to datenschutz 2024-11-14 01:21:53 +01:00
setup added post-creaton to setup-programm 2024-11-13 22:50:40 +01:00
.gitignore integrated client into repo 2024-11-13 23:10:38 +01:00
LICENSE added building and debugging through esbuild 2024-09-06 04:18:25 +02:00
Makefile makefile creates upload-directory in backend 2024-11-13 23:07:03 +01:00
README.md integrated client into repo 2024-11-13 23:10:38 +01:00

todo

  • use .env
  • use fibers fiber.NewError for http-error handling
  • update datenschutz

dotenv-example-code from chatgpt

package main

import (
    "fmt"
    "log"
    "os"

    "github.com/joho/godotenv"
)

func main() {
    // Load the .env file
    err := godotenv.Load()
    if err != nil {
        log.Fatal("Error loading .env file")
    }

    // Now you can access the variables
    dbHost := os.Getenv("DB_HOST")
    dbUser := os.Getenv("DB_USER")
    dbPassword := os.Getenv("DB_PASSWORD")

    fmt.Println("DB_HOST:", dbHost)
    fmt.Println("DB_USER:", dbUser)
    fmt.Println("DB_PASSWORD:", dbPassword)
}