github.com/lenfree/buffalo@v0.7.3-0.20170207163156-891616ea4064/examples/html-crud/main.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"log"
     6  	"net/http"
     7  	"os"
     8  
     9  	"github.com/gobuffalo/buffalo/examples/html-crud/actions"
    10  	"github.com/markbates/going/defaults"
    11  )
    12  
    13  func main() {
    14  	port := defaults.String(os.Getenv("PORT"), "3000")
    15  	log.Printf("Starting html-crud on port %s\n", port)
    16  	log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", port), actions.App()))
    17  }