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 bbeaf2d758 Merge branch 'develop' into master 1 week ago
assets code segment without border bottom 1 year ago
clt validate password input after all other flags are validated 2 months ago
components updated dependencies / new git path 7 months ago
controllers updated dependencies / new git path 7 months ago
examples updated dependencies / new git path 7 months ago
middleware updated dependencies / new git path 7 months ago
models sora articles in reverse order for index 2 months ago
routers updated dependencies / new git path 7 months ago
settings updated dependencies / new git path 7 months ago
templates remove extra p tags from teaser 1 week ago
utils updated dependencies / new git path 7 months ago
.gitignore add swap files from vim to gitignore 1 month ago
LICENSE init 2 years ago
Makefile minor 1 year ago
README.md Update 'README.md' 8 months ago
THIRDPARTY updated readme and thirdparties 1 year ago
go-blog.conf updating deps 3 months ago
go.mod updating deps 1 week ago
go.sum updating deps 1 week ago
main.go updated dependencies / new git path 7 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.