Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
adsouza committed Sep 26, 2024
1 parent f822ef9 commit adf3442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ A simple CRUD webapp for academic libraries to gather stats on usage of physical
# Dependencies

This app is written in Go 1.22 & runs on Google App Engine so you will need to
[download & install the Google Cloud SDK for Go](https://cloud.google.com/appengine/docs/standard/go/download) to work on it.
Having done so, you can run the app locally using the usual command:
[download & install the Google Cloud SDK for Go](https://cloud.google.com/appengine/docs/standard/setting-up-environment?tab=go)
to work on it. Having done so, you can run the app locally using the usual command:
`go run main.go` after setting the GOOGLE_APPLICATION_CREDENTIALS env var to the location of your GCP service account key file.

# Deployment
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ func main() {
port = "8080"
log.Printf("Defaulting to port %s", port)
}
log.Printf("Listening on port %s", port)
http.Handle("/static/", http.FileServer(http.Dir("static")))
http.HandleFunc("/history", historyHandler)
http.HandleFunc("/csv", csvHandler)
http.HandleFunc("/", indexHandler)
log.Printf("Listening on port %s", port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", port), nil))
}

0 comments on commit adf3442

Please sign in to comment.