robertfairley / rf-19-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal Site / CV / Blog

This repository houses my personal blog. It is comprised of a few static HTML pages (Go templates) and a couple of dynamic pages.

The server reads a list of available posts upon startup. Each request to a given post url prompts a lookup for each request to a given post that on-demand renders the markdown as HTML into the post.html Go template.

Designing

A couple of notes around design specifics for the site.

Post List

Each card as they exist from the Spectre CSS component fits an image with dimensions:

W H
472 400

Testing

Any available tests can be run with

make test

Running

No build

To run the server either for testing & development or in production through the go command, just run:

make run

Build Binary (Linux/macOS)

This command will produce a binary of the server program in the ./bin directory called server.

This binary still requires the project's tree structure, templates, static files, and any desired posts as they exist in this development repository.

make build

Run Binary

This can only be run after the build stage.

make start

Deploying

TBD.

Other Commands and Tooling

See the Makefile

License

MIT


© 2019 Robert Fairley

About

License:MIT License


Languages

Language:HTML 40.3%Language:Go 32.4%Language:CSS 22.3%Language:Makefile 2.7%Language:Shell 2.4%