📚 Infrastructure Documentation

This application you are using is in Go. Here's the Fullstack architecture

🍸 Go + Gin

Build a performant and modular backend using the Gin framework.

  • Gin is a web framework known to be lightweight & fast
  • We use Go structs, services & handlers to use in our route.go
  • This keeps the main.go file simple along with modular useful for error handling
router := gin.Default()
func main() {
	config.LoadEnv()
	handlers.StartBroadcaster()

	router := gin.Default()
	router.SetTrustedProxies([]string{"127.0.0.1", "majesticcoding.com"})

	handlers.SetupRoutes(router)

	router.Run(":8080")
}
router := gin.Default()
router.GET("/api/stats/:provider", func(c *gin.Context) {
    // Providers like YouTube, Twitch, Github.
    provider := c.Param("provider")
    c.JSON(200, gin.H{"message": "success", "provider": provider})
})