24 lines
366 B
Go
24 lines
366 B
Go
|
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)
|
||
|
}
|
||
|
}
|