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
Run all tests
go test ./...
Or run all tests with coverage
bash script/test-coverage.sh
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
# enable production mode, default is false
env SL_ENABLE_PROD=true
# set server address, default is :9000
env SL_SERVER_ADDRESS=":8000"
Build docker image
bash script/docker-build.sh
Run docker container
docker run -d --name service-ladrawex -p 9000:9000 statnlp/service-ladrawex
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE file for details