service-ladrawex

module
v0.0.0-...-7dc6c5b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT

README

StatNLP Ladrawex (LaTeX Draw) Service

Build Status codecov Go Report Card GoDoc License

Installation

Get the service-ladrawex repository

go get github.com/sutd-statnlp/service-ladrawex

cd $GOPATH/src/github.com/sutd-statnlp/service-ladrawex

And install dependencies

go get -u github.com/golang/dep/cmd/dep

dep ensure

Testing

Run all tests

go test ./...

Or run all tests with coverage

bash script/test-coverage.sh

Build and Run

Run main.go

go run main.go
# serve at localhost:9000

Build and run native binary

bash script/build.sh

./service-ladrawex.out

Build native binary for multiple platforms (darwin, windows and linux)

bash script/build-multi.sh

Environment variables

    # enable production mode, default is false
    env SL_ENABLE_PROD=true

    # set server address, default is :9000
    env SL_SERVER_ADDRESS=":8000"

Docker support

Build docker image

bash script/docker-build.sh

Run docker container

docker run -d --name service-ladrawex -p 9000:9000 statnlp/service-ladrawex

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

Directories

Path Synopsis
cmd
util
web
api

Jump to

Keyboard shortcuts

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