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

https://github.com/micro-company/react-app

An example of demonstration work with a microservice architecture
https://github.com/micro-company/react-app

auth ci-flow example jwt react

Last synced: 13 days ago
JSON representation

An example of demonstration work with a microservice architecture

Awesome Lists containing this project

README

          

## Front-End

[![License](https://img.shields.io/npm/l/sequelize.svg?maxAge=2592000?style=plastic)](https://github.com/micro-company/react-app/blob/master/LICENSE)

An example of demonstration work with a micro-service architecture

![UserPage](./docs/UserPage.png)

### Getting start (only front-end)

1. Create `.env` file with ENV variables
2. Install dependencies `npm i`
3. Run application `npm start`

### Kubernetes

##### Requirements

1. [Docker](https://docs.docker.com/install/)
1. [Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/)
1. [Helm](https://docs.helm.sh/using_helm/#installing-helm)

```
# Add repo to Helm
helm repo add batazor https://batazor.github.io/charts/

# Update repo charts
helm repo update

# Install project
helm install batazor/react-app
```

#### Enviroment variables

| **NAME** | **VALUE** |
| ---------------------------------- | --------------------- |
| REACT_APP_API_URL | http://localhost:4070 |
| REACT_APP_GOOGLE_RECAPTCHA_SITEKEY | secretKey |
| **Auth** | - |
| REACT_REFRESH_TIME | 180 (seconds) |
| **For CI** | - |
| GITHUB_USER | - |
| GITHUB_PASSWORD | - |

#### CI FLOW

![ci-flow](./docs/ci-flow.png)