From d6bc9369d909ba622ce2082fd9743d0e0ceb01e2 Mon Sep 17 00:00:00 2001 From: Steven Ferrer Date: Mon, 28 Sep 2020 12:34:51 +0800 Subject: [PATCH] update solr-go to latest version - minor updates on README.md --- README.md | 18 ++++++++++++++++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b3c57fc..c851fa8 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,26 @@ Wait for a few seconds while Solr is loading. 2. Run the API ```console -$ cd cmd/api && go build -v && ./api -init-schema -index-data -init-suggester +// cd to api +$ cd cmd/api + +// build the api +$ go build -v + +// start the api +$ ./api -init-schema -index-data -init-suggester ``` 3. Run the web app (open a new terminal tab) ```console -$ cd webapp && yarn serve +// cd to web app folder +$ cd webapp + +// install dependencies +$ yarn // or npm install + +// start the web app +$ yarn serve // or npm run serve ``` 4. Open http://localhost:8080 in your browser and start playing with it! diff --git a/go.mod b/go.mod index 6a98729..bff2837 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,6 @@ require ( github.com/go-chi/chi v4.1.2+incompatible github.com/go-chi/cors v1.1.1 github.com/pkg/errors v0.9.1 - github.com/sf9v/solr-go v0.1.2 + github.com/sf9v/solr-go v0.1.3 golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect ) diff --git a/go.sum b/go.sum index f14ec10..31aa11b 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/sf9v/solr-go v0.1.2 h1:IT57+MJ8gUtl4Iu5E9+EK7pg6+bX0MOn0dz7bSYPeaY= -github.com/sf9v/solr-go v0.1.2/go.mod h1:ePa8+6kV1baPpoywPbmcR06wQ0500EGuMntYGxli5Xk= +github.com/sf9v/solr-go v0.1.3 h1:ldgScD/jhZG5haSAOqjuMMXZAImz6dNkNT9XBUAIDDU= +github.com/sf9v/solr-go v0.1.3/go.mod h1:JhdkNLuAOmKTj3TcZ6URW+SCQjoxEKkwLcI6EIEQkHE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=