- Go 1.16 or later
- Docker (optional)
-
Clone the repository:
git clone https://github.com/mogw/ltp-go.git
-
Build the app:
cd ltp-go go build -o app
-
Clone the repository:
git clone https://github.com/mogw/ltp-go.git
-
Build the Docker image:
docker build -t your-image-name .
-
Make sure you have Go installed and the app is built (see "Building the App" section above).
-
Run the app:
./app
The app will start listening on http://localhost:8080. please visit http://localhost:8080/api/v1/ltp
-
Make sure you have Docker installed (see "Prerequisites" section above).
-
Run the Docker container:
docker run -p 8080:8080 your-image-name
Replace your-image-name with the name of your Docker image. The app will start listening on http://localhost:8080. please visit http://localhost:8080/api/v1/ltp
To run the tests, execute the following command:
go test