Skip to content

samolds/port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 30, 2019
e3e45df · Dec 30, 2019

History

21 Commits
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019
Dec 30, 2019

Repository files navigation

Port

Source code for my personal web server

Too many analogies with port - like a spaceport or portal to the web for Sam's portfolio.

About

This is an exercise in writing a simple, clean, idiomatic web server with only the std lib.

Setup

go get github.com/samolds/port

Run Dev Version

cd $GOPATH/src/github.com/samolds/port
go mod vendor
go install -mod=vendor .../port && ../../../../bin/port
  --port=":8080"
  --static-dir="/Users/samolds/projects/go/src/github.com/samolds/port/static"
  --gae-project-id="samolds"
  --gae-cred-file="/Users/samolds/projects/go/src/github.com/samolds/port/static/assetdump/gae_cred_file_samolds.json"
  --rel-html-tmpl-dir="template/pages"

To Test Everything

cd $GOPATH/src/github.com/samolds/port
go test ./...

To Deploy

In directory with app.yaml

gcloud app deploy

Interesting Libraries to explore

  • github.com/samolds/port/template
  • github.com/GoogleCloudPlatform/golang-samples/appengine/go11x/static/
  • gopkg.in/webhelp.v1/whmux
  • github.com/spacemonkeygo/spacelog
  • gopkg.in/spacemonkeygo/monkit.v2
  • github.com/zeebo/errs
  • github.com/go-chi/chi
  • cloud.google.com/go
  • github.com/GoogleCloudPlatform/golang-samples/getting-started/bookshelf/app

About

Personal Website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published