More testing of the sqlx and squirrel database system, then added in goose for migrations. Pretty close to making a first version api.

This commit is contained in:
Zed A. Shaw 2025-05-31 00:10:22 -04:00
parent 07fa59c8e7
commit d49e1fbdc0
6 changed files with 554 additions and 7 deletions

View file

@ -8,6 +8,11 @@ import (
func main() {
app := fiber.New()
// handler that returns one json from a sql database
app.Get("/api/stream/", func (c *fiber.Ctx) error {
return c.SendString("[]")
})
app.Static("/", "./public")
log.Fatal(app.Listen(":5001"))