Replay this demo at your local machine.
You can also follow the instructions on how to build this app via the slide deck from the event.
For running locally:
- Docker
- Python 3.x
For running on Kubernetes:
- Docker
- Kubectl
- A Kubernetes cluster
git clone https://github.com/artursouza/dapr-day-2022.git
cd dapr-day-2022Now, Install Dapr CLI: https://docs.dapr.io/getting-started/install-dapr-cli/
Install Python dependencies:
pip3 install requirements.txtRun the app:
dapr run --app-id=url_shortener --components-path=components/ -- python3 main.pyOpen the webapp on your browser: http://127.0.0.1:8080/
Install Dapr on your Kubernetes cluster:
dapr init -kInstall Redis on Kubernetes cluster:
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install redis bitnami/redis --set image.tag=6.2Deploy to Kubernetes:
kubectl apply -f kubernetes/Port forward:
kubectl port-forward service/url-shortener 3000:80Open the webapp on your browser: http://127.0.0.1:3000/
