Skip to content

View, edit, and save text files via http to the file system.

License

Notifications You must be signed in to change notification settings

clintvidler/go-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-wiki

View, edit, and save text files via http to the file system.

(DONE) https://golang.org/doc/articles/wiki/

Instructions

go run main.go

In a web browser, visit localhost:9090 (or specified port)

  • /view/x will redirect to create a page with title 'x'

  • /edit/x will edit page with title 'x' (editing a non-existent url will create a new page)

Docker

Build:

docker build -t go-wiki .

Run in detached mode:

docker run -d -p 9090:9090 -e PORT="9090" go-wiki

Find and stop a container:

docker ps
docker stop <CONTAINER ID>

Generate self-signed certificates

mkdir certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
    -keyout certs/localhost.key -out certs/localhost.crt \
    -subj "/C=AU/ST=Australia/L=Canberra/O=Clint Vidler/OU=Dev/CN=localhost/emailAddress=clint@vidler"

About

View, edit, and save text files via http to the file system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published