g-wiki

command module
v0.0.0-...-f832243 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2018 License: GPL-3.0 Imports: 17 Imported by: 0

README

g-wiki-b

A simple wiki built on golang with git as the storage back-end. Content is formatted in markdown syntax. The wiki is rendered with go templates and bootstrap css.

The g-wiki-b is originally forked off from the wonderfully simple original g-wiki, then heavily modified and customized for my personal use and needs, still KISS-ing on the way.

Build and run locally

Ensure that go is installed. Download dependencies and compile the binary by:

go get -o wiki github.com/akavel/g-wiki

Create a git repository in some folder, for example files/:

git init files/

You can now run g-wiki with the standard settings by executing the binary:

./wiki -http=":8000" -wiki=./files -theme="$GOPATH/src/github.com/akavel/g-wiki/theme"

Point your web browser to http://localhost:8000/ to see the wiki in action. The wiki will try to store files in the files folder if configured as above. This folder has to exist and be writeable by the user running the g-wiki instance.

Docker

Ensure that docker is installed. The docker file will create a files directory for you, and initialize a git repository there. Rembember that these files are not persistent. Dependent on your environement run docker as root (or not) and execute the following commands:

docker build -t go-wiki:latest .

If this executes succesfully your container is ready:

docker run -d -p 8000:8000 go-wiki:latest

This starts the web application in deamon mode, and the application should be accessible on http://localhost:8000/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL