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.yamlIf you are using MySQL, please create the database manually.
- Migration
GIN_MODE=debug go run ./bin/migrate_cmd.go -db=migrateAlso see https://github.com/icbd/gorm-migration .
- Run Server
GIN_MODE=debug go run ./main.goincluding sub-packages
GIN_MODE=test go run ./bin/migrate_cmd.go -db=migrate
GIN_MODE=test go test ./... -vMIT, see LICENSE
