mirror of
https://github.com/wisplite/raster.git
synced 2026-05-01 06:32:44 -05:00
set up backend project structure and started on initial models and routes
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/wisplite/raster/internal/db"
|
||||
"github.com/wisplite/raster/internal/routes"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if !db.Init() {
|
||||
log.Fatal("failed to initialize database")
|
||||
}
|
||||
|
||||
r := gin.Default()
|
||||
|
||||
routes.RegisterRoutes(r)
|
||||
|
||||
r.Run(":8080")
|
||||
}
|
||||
Reference in New Issue
Block a user