magicwallet/main.go

24 lines
366 B
Go
Raw Normal View History

2024-10-24 12:11:06 +00:00
package main
import (
"fmt"
"log"
"net/http"
"github.com/ekzyis/baas/baas"
"github.com/ekzyis/baas/lib"
)
func main() {
fmt.Printf("%s%s\n\n",
lib.Figlet("graffiti", "baas"),
" --- bankify as a service --- ")
s := baas.NewServer()
// TODO: read port from env
if err := s.Start("127.0.0.1:8888"); err != http.ErrServerClosed {
log.Fatal(err)
}
}