This is GoHighlights's server project, the frontend project is https://github.com/icbd/gohighlights_ext .
- Add Highlight
- Change Color
- Remove Highlight
- Replay Highlight
- History Dashboard
- User-friendly Personalization Setting
- Web Timer
- Reading Report
- Read Later Box
You can try the online version of the chrome store:
https://chrome.google.com/webstore/detail/go-highlights/homlcfpinafhealhlmjkmdjdejppmmlk
ENV Tag | Description | Default |
---|---|---|
GIN_MODE | gin mode (debug/test/release) | debug |
DB_TYPE | database type (mysql/sqlite) | sqlite |
DB_DSN | database data source name | root:password@tcp(127.0.0.1:3306)/dbname |
CONF_LOC | config file location | ./config.yaml |
ES_URL | elasticsearch url | http://localhost:9200 |
- Edit Config File
vi config.yaml
If you are using MySQL, please create the database manually.
- Migration
GIN_MODE=debug go run ./bin/migrate_cmd.go -db=migrate
Also see https://github.com/icbd/gorm-migration .
- Run Server
GIN_MODE=debug go run ./main.go
including sub-packages
GIN_MODE=test go run ./bin/migrate_cmd.go -db=migrate
GIN_MODE=test go test ./... -v
MIT, see LICENSE