goblog

command module
v0.0.0-...-ecf4cb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2015 License: MIT Imports: 24 Imported by: 0

README

goblog

goblog is a very simple blogging platform written in Go and designed to run in the AWS Elastic Beanstalk and store the blog data S3. THe engine uses the blackfriday markdown library, gorilla mux, and the built in Go templating functionality. Development of goblog has been primarily an exercise to learn and experiment with Go and AWS to build my personal blog. Here is the blog in action.

Getting Started

The configuration is set via environment variables. The blog data can either be stored in a local folder or in Amazon S3.

Key Value
GOBLOG_DATA Local Path / S3 Bucket Name
GOBLOG_DRIVER file / aws
GOBLOG_REGION AWS default region
AWS_ACCESS_KEY_ID AWS access key
AWS_SECRET_ACCESS_KEY AWS secret key

config.json needs to be located in the data folder. A sample configuration file is included in the posts/ folder in the repository.

Markdown files need to contain a set of key/value pairs in the top part of the file. See one of the sample markdown files for the syntax.

Finally, markdown files need to follow a precise naming convention:

YYYY-MM-DD-HH-mm-ss-Title.md

Resources

Layout based on: http://tutorialzine.com/2013/03/simple-php-blogging-system-part-2/

Documentation

Overview

Copyright (c) 2015 Peter Noyes

goblog project main.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL