Skip to content
Snippets Groups Projects
README.md 935 B
Newer Older
Jan Zak's avatar
Jan Zak committed
# provee-backend
IsolatedSushi's avatar
IsolatedSushi committed
## Local development
Run the gateway in `\webSocketGateway` using `npm start`.
Run the projector in `\gRPCProjector\node` or `\gRPCProjector\python` using  `npm start` or `python3 grpcServer.py` respectively.


## Deploy with kubernetes

With minikube you can deploy the deployment.yaml file.
Then run `minikube tunnel` to expose the external IP


`Dockerfile.dev` defines a development container with `nodemon`. It requires to attach the source code directory as volume for automatic reloading of code changes.

`docker-compose.yml` automatically builds a container with `Dockerfile.dev`.

```
docker-compose up --build --remove-orphans
Jan Zak's avatar
Jan Zak committed
Services can be scaled with `--scale` argument, e.g. `--scale projector=4`.

`Dockerfile` defines a production container.
Jan Zak's avatar
Jan Zak committed
There is no `docker-compose.yml` using it yet, because production deployment is likely going to use Kubernetes instead.