pvsone / food-delivery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food Delivery App - Alt Backends

This repository contains alternate Temporal (worker & workflow) backend implementations for the Food Delivery App.

The original Food Delivery sample is fully implemented in TypeScript, both the frontend (UI & API server) and the Temporal backend. It is a wonderful example of a full stack application using the Temporal TypeScript SDK. If you have not yet explored that example, please do so along with the excellent companion blog posts:

Frontend (UI & API Server)

The frontend apps in this repo are effectively the same as the original Food Delivery App frontends. These are the menu app and the driver app. The code has been copied into this repository for convenience, with minimal changes.

To run the frontend apps, see frontend/README.md.

Backend (Temporal Worker & Workflow)

This repository contains multiple alternate backends for the Food Delivery App. Each backend is implemented in a different language and uses the corresponding Temporal SDK for that language.

You will only need to run one of the backends at a time. To pick and run a backend, see backend/README.md.

Temporal

This sample will work with either the Temporal dev server or Temporal Cloud.

Temporal Dev Server

If you are using the Temporal dev server, simply execute the following command to start the server:

temporal server start-dev

You can access the Temporal Web UI at http://localhost:8233.

Temporal Cloud

If using Temporal Cloud, please set the following environment variables:

export TEMPORAL_ADDRESS=<your_namespace>.<your_account>.tmprl.cloud:7233
export TEMPORAL_NAMESPACE=<your_namespace>.<your_account>
export TEMPORAL_TLS_CERT=/path/to/client.crt
export TEMPORAL_TLS_KEY=/path/to/client.key
export TEMPORAL_TLS_KEY_PKCS8=/path/to/pkcs8_client.key

The TEMPORAL_TLS_KEY_PKCS8 environment variable is only required if you are using the Java backend.

You can access the Temporal Web UI at https://cloud.temporal.io

About


Languages

Language:TypeScript 46.0%Language:JavaScript 20.7%Language:Java 18.1%Language:C# 15.0%Language:CSS 0.2%