mirror of
https://github.com/simon987/ws_bucket.git
synced 2025-12-18 00:59:04 +00:00
minimum viable (excluding auth)
This commit is contained in:
17
main.go
Normal file
17
main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/jinzhu/gorm"
|
||||
"github.com/simon987/ws_bucket/api"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
db, err := gorm.Open("postgres", "host=localhost user=ws_bucket dbname=ws_bucket password=ws_bucket sslmode=disable")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
a := api.New(db)
|
||||
a.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user