Skip to content

Repository files navigation

Dapr Day 2022 - Developing an App with Dapr

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.

Pre-requisites

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-2022

Running on local mode

Now, Install Dapr CLI: https://docs.dapr.io/getting-started/install-dapr-cli/

Install Python dependencies:

pip3 install requirements.txt

Run the app:

dapr run --app-id=url_shortener --components-path=components/ --  python3 main.py

Open the webapp on your browser: http://127.0.0.1:8080/

Demo for the URL shortener app

Running on Kubernetes

Install Dapr on your Kubernetes cluster:

dapr init -k

Install 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.2

Deploy to Kubernetes:

kubectl apply -f kubernetes/

Port forward:

kubectl port-forward service/url-shortener 3000:80

Open the webapp on your browser: http://127.0.0.1:3000/

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages