Go to file
Lars Hoogestraat 68413532c4 Merge branch 'develop' 2019-03-26 13:58:49 +01:00
assets fixed footer not at bottom on small displays 2019-03-20 10:29:53 +01:00
clt check for empty sqlite file 2018-12-13 16:38:28 +01:00
components fixed database initialization 2019-02-25 13:55:04 +01:00
controllers change to session ids from values function 2019-03-18 13:03:42 +01:00
examples removed obsolete mysqld from systemd example 2018-12-25 23:15:59 +01:00
middleware dynamic title on article page 2019-03-26 13:53:18 +01:00
models minor 2019-03-19 13:54:23 +01:00
routers added possibility to update the slug when changing the header 2019-03-11 12:35:00 +01:00
settings fix for empty favicon 2018-12-15 02:13:42 +01:00
templates dynamic title on article page 2019-03-26 13:53:18 +01:00
utils improve file upload #2 2018-12-12 17:52:32 +01:00
.gitignore makefile 2018-12-13 16:24:42 +01:00
LICENSE init 2018-04-27 14:38:12 +02:00
Makefile updated makefile 2019-03-18 21:20:11 +01:00
README.md docs 2019-03-14 12:26:07 +01:00
THIRDPARTY updated readme and thirdparties 2018-11-20 11:30:08 +01:00
go-blog.conf docs 2019-03-14 12:26:07 +01:00
go.mod update logrus 2019-03-22 11:03:06 +01:00
go.sum update logrus 2019-03-22 11:03:06 +01:00
main.go improve file upload #2 2018-12-12 17:52:32 +01:00

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
  • copy go-blog.conf into custom/ folder
  • edit custom/go-blog.conf to your needs

SQLite setup

Create the initial database:

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

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

Create user with administration rights

Create your first administrator account with createuser:

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

Make sure -admin is set.

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.