grpc-proxy
v1.1.9
Published
A SocketIO proxy for the Termius GRPC API
Readme
GRPC Proxy
This project is a SocketIO proxy for the Termius GRPC API.
Development
The project uses scripts in package.json to manage and run tasks for
project development.
npm install # Install dependencies
npm run lint # Check codestyle
npm test # Run tests
npm start # Run local development serverThe project uses Makefile to manage and run tasks for project deployemnt.
make build # Build docker image
make lint-tf # Run static analysis for Terraform configurations
make plan-deploy # Setup terraform configuration and plan changesPrerequisites
Deployment
The project uses Continuous Deployment. The change from the develop branch are deployed
Deployment from local environment to AWS
make push-development # Build and push docker image for the development environment
make release-development # Update the development environment
make push-production # Build and push docker image for the production environment
make release-production # Update the production environmentHow to test grpc locally:
- Replace original process.env to current in
configuration.tsfile:
export const { GRPC_HOST_AND_PORT = 'dev.grpc.termius.com:443' } = process.env
export const { ALLOWED_ORIGINS = 'https://devserver.termius.com:9000' } = process.env- Rebuild grpc-proxy
npm run build- Run grpc-proxy
npm start- Add
ws://127.0.0.1:4200to AM CSP connect-src
