Public | Automated Build

Last pushed: 2 years ago
Short Description
Spearwind CMS API
Full Description


API Docs

Run locally with defaults

go build && ./cms

Optionally, use fresh to auto-reload changes to speed up your dev cycles.

System Configuration

The system is configured via environment variables. These are the available environment variables used to configure this system:

  1. AWS_ENDPOINT - the Amazon SES email endpoint. i.e.
  2. AWS_ACCESS_KEY_ID - your AWS Access Key ID, with SES rights
  3. AWS_SECRET_ACCESS_KEY - your AWS Secret Access Key, with SES rights
  4. EMAIL_TEMPLATE_DIR - the location of the directory containing all of the email templates
  5. FB_APP_ID - Facebook Application ID, for use with Facebook Login
  6. FB_APP_SECRET - Facebook Application Secret, for use with Facebook Login
  7. MONGO_URL - Mongo DB Connection URL; e.g. mongodb://


Tests require slightly different setup.

EMAIL_TEMPLATE_DIR='../email-templates' go test ./...

Build Docker Image

GOOS=linux GOARCH=amd64 go build -ldflags "-X main.VERSION=1.0" && mkdir -p build/linux64 && mv cms build/linux64

docker build -t dmalone/spearwind-cms .

Docker Pull Command
Source Repository