Go to file
Lars Hoogestraat f1dc6fa95a remove equals and use error.Is 2020-12-07 16:18:58 +01:00
assets code segment without border bottom 2019-03-29 12:31:20 +01:00
clt fixes test 2020-11-29 18:35:31 +01:00
crypt cleanup crypt package 2020-12-06 15:53:42 +01:00
database removed components folder 2020-11-28 16:40:45 +01:00
examples updated dependencies / new git path 2020-02-20 23:05:27 +01:00
handler remove equals and use error.Is 2020-12-07 16:18:58 +01:00
httperror remove equals and use error.Is 2020-12-07 16:18:58 +01:00
logger comment 2020-12-06 16:54:02 +01:00
mail removed components folder 2020-11-28 16:40:45 +01:00
middleware clean-up middleware 2020-12-06 16:07:53 +01:00
models removed util package #3 2020-11-29 00:37:59 +01:00
routers rename controllers in handler 2020-11-29 16:56:42 +01:00
settings cleanup crypt package 2020-12-06 15:53:42 +01:00
slug updated dependencies 2020-11-29 16:46:23 +01:00
templates remove extra p tags from teaser 2020-09-14 12:21:25 +02:00
.gitignore set go path according to go env if not defined 2020-11-30 13:43:58 +01:00
LICENSE init 2018-04-27 14:38:12 +02:00
Makefile cleanup crypt package 2020-12-06 15:53:42 +01:00
README.md Update 'README.md' 2020-01-14 22:26:02 +01:00
THIRDPARTY updated readme and thirdparties 2018-11-20 11:30:08 +01:00
go-blog.conf updating deps 2020-06-12 12:50:03 +02:00
go.mod cleanup crypt package 2020-12-06 15:53:42 +01:00
go.sum cleanup crypt package 2020-12-06 15:53:42 +01:00
main.go removed components folder 2020-11-28 16:40:45 +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 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.