Add existing codebase
This commit is contained in:
commit
c23a68347b
16 changed files with 807 additions and 0 deletions
20
cmd/link/main.go
Normal file
20
cmd/link/main.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"link"
|
||||
"link/database"
|
||||
)
|
||||
|
||||
func main() {
|
||||
conf := link.NewConfig()
|
||||
|
||||
pool := database.Pool(conf)
|
||||
|
||||
if err := link.Migrate(pool); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
server := link.NewServer(conf, pool)
|
||||
|
||||
server.Logger.Fatal(server.Start(":8080"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue