Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 78488d2f41 | |||
| 7399fbc5ff | |||
| f62499f6b5 | |||
| 16006c1f1b | |||
| 92c293205d | |||
| 6473b48a5b | |||
| 385397c980 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
badger/
|
||||
dist/
|
||||
tmp/
|
||||
linkwallet
|
||||
|
||||
@@ -11,11 +11,15 @@ builds:
|
||||
- windows
|
||||
- darwin
|
||||
dockers:
|
||||
- image_templates:
|
||||
- goos: linux
|
||||
goarch: amd64
|
||||
image_templates:
|
||||
- "tardisx/linkwallet:{{ .Tag }}"
|
||||
- "tardisx/linkwallet:v{{ .Major }}"
|
||||
- "tardisx/linkwallet:v{{ .Major }}.{{ .Minor }}"
|
||||
- "tardisx/linkwallet"
|
||||
build_flag_templates:
|
||||
- "--platform=linux/amd64"
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: Darwin
|
||||
@@ -33,3 +37,4 @@ changelog:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
- '^[Bb]ump'
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
FROM scratch
|
||||
FROM alpine:3.16
|
||||
ENTRYPOINT ["/linkwallet"]
|
||||
COPY linkwallet /
|
||||
19
README.md
19
README.md
@@ -1 +1,20 @@
|
||||
# linkwallet
|
||||
|
||||
A self-hosted bookmark database with full-text page content search.
|
||||
|
||||
# Feature list
|
||||
|
||||
* Simple cross-platform single binary deployment
|
||||
* or docker if you prefer
|
||||
* Full-text search
|
||||
* Bookmark content is scraped and indexed locally
|
||||
* Page content periodically refreshed automatically
|
||||
* Interactively search across titles and content
|
||||
* Rippingly fast results, as you type
|
||||
* Embedded database, no separate database system required
|
||||
* Light on resources
|
||||
|
||||
# Roadmap
|
||||
|
||||
* Bookmarklet
|
||||
* Tags
|
||||
|
||||
25
cmd/linkwallet/linkwallet.go
Normal file
25
cmd/linkwallet/linkwallet.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/tardisx/linkwallet/db"
|
||||
"github.com/tardisx/linkwallet/version"
|
||||
"github.com/tardisx/linkwallet/web"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
dbh := db.DB{}
|
||||
dbh.Open("badger")
|
||||
bmm := db.NewBookmarkManager(&dbh)
|
||||
|
||||
go func() { version.UpdateVersionInfo() }()
|
||||
|
||||
log.Printf("linkallet verison %s starting", version.Is())
|
||||
|
||||
server := web.Create(bmm)
|
||||
go bmm.RunQueue()
|
||||
go bmm.UpdateContent()
|
||||
server.Start()
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"golang.org/x/mod/semver"
|
||||
)
|
||||
|
||||
const Tag = "v0.0.3"
|
||||
const Tag = "v0.0.6"
|
||||
|
||||
var versionInfo struct {
|
||||
Local struct {
|
||||
|
||||
Reference in New Issue
Block a user