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.
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.
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/