field-services
field-services copied to clipboard
Field Services Golang Server
Go gRPC Server for Purchasing and Mobile clients.
Table of Contents
- Client Apps
- Getting Started
- Running Go server without docker
- Potential Errors
- TODO
Client Apps
Mobile client (Flutter): field-services-mobile
Purchasing client (ReactJS): field-services-purchasing
Getting Started
Use the following command in the root directory to start the docker containers.
docker-compose up -d
Running Go server without docker
- Stop all running containers with
docker-compose down
- Open the .env file and change the
SERVICE
variable fromgrpcsvc
tolocalhost
on linux orhost.docker.internal
if using windows - Comment out the entire
grpcsvc
in docker-compose.yml - Restart docker containers with
docker-compose up -d
- In the root directory run
go run cmd/grpcsvc/main.go
Potential Errors
It may take a few seconds for the containers to start up. If you are getting errors, first try shutting down and restarting the containers
Error: Http response at 400 or 500 level
Issue connecting to Envoy, check envoy has not crashed
Error: upstream connect error or disconnect/reset before headers. reset reason: connection failure
Envoy cannot connect to outgoing service, check SERVICE environmental variable in .env file is correct
Error: no healthy upstream
Envoy OK, check Go service is running and has not crashed
Todo
- Fix tests
- More...