An open API service indexing awesome lists of open source software.

https://github.com/rbiedrawa/react-k8s-env-demo

This repository demonstrates how to inject env variables into react application running inside kubernetes or docker-compose.
https://github.com/rbiedrawa/react-k8s-env-demo

docker docker-compose environment-variables k8s kubernetes react react-app skaffold

Last synced: 7 months ago
JSON representation

This repository demonstrates how to inject env variables into react application running inside kubernetes or docker-compose.

Awesome Lists containing this project

README

          

# React k8s env variables (demo)

This repository demonstrates how to inject env variables into react application running inside kubernetes or docker-compose.

## Getting Started

### Prerequisites

* Docker
* Kubernetes

### Usage

#### Docker Compose

* Start docker compose.
```shell
docker-compose up -d
```

* Open your web browser and go to react app [home page](http://localhost:3000/).

* Stop docker compose.
```shell
docker-compose down -v
```

#### Kubernetes

* Start application using skaffold.
```shell
skaffold dev --port-forward
```
* Open your web browser and go to react app [home page](http://localhost:3000/).

* Stop skaffold dev (`CTRL + C`).

## References

## License

Distributed under the MIT License. See `LICENSE` for more information.