You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Lars Hoogestraat 95834ef9f1 rename controllers in handler 11 months ago
assets code segment without border bottom 3 years ago
clt removed components folder 11 months ago
crypt removed util package #3 11 months ago
database removed components folder 11 months ago
examples updated dependencies / new git path 2 years ago
handler rename controllers in handler 11 months ago
httperror removed components folder 11 months ago
logger removed components folder 11 months ago
mail removed components folder 11 months ago
middleware removed components folder 11 months ago
models removed util package #3 11 months ago
routers rename controllers in handler 11 months ago
settings removed components folder 11 months ago
slug updated dependencies 11 months ago
templates remove extra p tags from teaser 1 year ago
.gitignore add swap files from vim to gitignore 1 year ago
LICENSE init 4 years ago
Makefile minor 3 years ago
README.md Update 'README.md' 2 years ago
THIRDPARTY updated readme and thirdparties 3 years ago
go-blog.conf updating deps 1 year ago
go.mod updated dependencies 11 months ago
go.sum updated dependencies 11 months ago
main.go removed components folder 11 months ago

README.md

Go-Blog

Small sample open-source blog written in Go using markdown for writing articles and sites.

Prerequisites

  • SQLite3

Configuration

  • create a "custom" folder in the app directory
  • copy go-blog.conf into custom/ folder
  • edit custom/go-blog.conf to your needs
  • create a user for running this application
  • see "examples/systemd" for creating a service

SQLite setup

Create the initial database (switch to folder clt/):

./init_database -sqlite /path/to/your/sqlite/database 

Change the config file to point to the correct sqlite database

  sqlite_file = /path/to/your/sqlite/database

Create user with administration rights

Create your first administrator account with createuser (switch to folder clt/):

./createuser -admin -sqlite /path/to/your/sqlite/database -username test -email test@example.com -displayname "Hello World" 

Make sure -admin is set. Enter a password for the user.

Licence

The MIT License (MIT)
Copyright (c) 2018 Lars Hoogestraat

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.