This repository has been archived on 2026-01-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2025-07-03 15:04:27 +03:00
|
|
|
package main
|
|
|
|
|
|
2025-07-03 17:55:15 +03:00
|
|
|
import (
|
|
|
|
|
"backend/config"
|
|
|
|
|
"backend/routes"
|
|
|
|
|
"log"
|
|
|
|
|
)
|
2025-07-03 15:04:27 +03:00
|
|
|
|
|
|
|
|
func main() {
|
2025-07-03 17:55:15 +03:00
|
|
|
// Load env variables
|
|
|
|
|
env := config.LoadEnv()
|
2025-07-03 15:04:27 +03:00
|
|
|
|
2025-07-03 17:55:15 +03:00
|
|
|
// Setup routes
|
|
|
|
|
routes := routes.SetupRoutes()
|
|
|
|
|
|
|
|
|
|
// Listen on port smth
|
|
|
|
|
log.Printf("Starting server on %s PORT\n", env["port"])
|
2025-07-03 21:58:49 +03:00
|
|
|
log.Fatal(routes.Run(":8080"))
|
2025-07-03 15:04:27 +03:00
|
|
|
}
|