This repository has been archived by the owner. It is now read-only.
A quick diary web app, just one page! powered by golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/setup Update files Sep 15, 2015
sql Fix nullstring error Nov 25, 2016
vendor/github.com Add vendor Sep 8, 2017
vol Update k8s.yml Aug 23, 2017
.gitignore
.travis.yml Using exp vendor Dec 14, 2015
Dockerfile Update files Aug 23, 2017
Gopkg.toml Update godep Aug 23, 2017
Jenkinsfile Update Jenkinsfile Dec 29, 2017
LICENSE.txt Add MIT license.txt Nov 3, 2015
admin-controller.go Fix web add blog failed Mar 13, 2017
api-controller.go Add api test Mar 29, 2017
base.go Add config.toml to vol Aug 23, 2017
build.sh Add buil.sh Aug 23, 2017
catlog.sh Update files to repository Dec 25, 2015
config.toml.dist Add aws sdk, and write uploading handle code Nov 24, 2016
front-controller.go Add api test Mar 29, 2017
graceful-restart.sh Update files to repository Dec 25, 2015
k8s.yml Update files Aug 23, 2017
main.go Update files Aug 23, 2017
readme.md Show you the daylove with bookmarklet Dec 26, 2015
up.sh

readme.md

DayLove

A tiny blog software, written with golang.

No title required. just plain text , may insert html, link, image or video what ever

Install

go get -u -v github.com/netroby/daylove
go build
./daylove

Or you can install docker, then run docker container

# to install docker on your platform
# wget -qO- get.docker.com | sudo sh
git clone https://github.com/netroby/daylove.git
./up.sh

Make sure your docker verision 1.9.1+

$ docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:20:08 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.2
 Git commit:   a34a1d5
 Built:        Fri Nov 20 13:20:08 UTC 2015
 OS/Arch:      linux/amd64

Once you docker up and running, you may access demo via http://127.0.0.1:8080 To login, you need visit http://127.0.0.1:8080/admin/login (The password will be found in config.toml file) To create blog , you can visit http://127.0.0.1:8080/admin/addblog

Graceful restart

And if you want reload daylove, just run following command

docker kill -s HUP daylove

Or may you want to rebuild binary and graceful reload ?

git pull --rebase
./graceful-restart.sh

Quick add link to daylove

First ,you need create bookmarklet for chrome browser.

javascript:location.href="http://127.0.0.1:8702/?content=" + encodeURIComponent('<a href="'+location.href+'">'+document.title+'</a>')

Just replace your daylove domain and port with this. then you open any web page you want to quick add it's link to daylove. Click the bookmarklet you had create before. then you will see the new open window contain the title and url linked at the edit box

License

MIT License

Donate me please

Bitcoin donate

136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh

Alipay donate

Scan QRCode donate me via Alipay

Scan QRCode donate me via Alipay