gohighlights

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 8 Imported by: 0

README

GoHighlights

GitHub Workflow Status GitHub tag (latest by date)

This is GoHighlights's server project, the frontend project is https://github.com/icbd/gohighlights_ext .

Features

  • Add Highlight
  • Change Color
  • Remove Highlight
  • Replay Highlight

Config

ENV
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
CMD
  1. Edit Config File
vi config.yaml

If you are using MySQL, please create the database manually.

  1. Migration
GIN_MODE=debug go run ./bin/migrate_cmd.go -db=migrate

Also see https://github.com/icbd/gorm-migration .

  1. Run Server
GIN_MODE=debug go run ./main.go

Run test

including sub-packages

GIN_MODE=test go run ./bin/migrate_cmd.go -db=migrate
GIN_MODE=test go test ./... -v

License

MIT, see LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL