GithubHelp home page GithubHelp logo

zboralski / ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from temporalio/ui

1.0 0.0 0.0 12.84 MB

Temporal UI

Home Page: https://docs.temporal.io/web-ui

License: MIT License

Shell 0.03% JavaScript 7.49% Go 6.83% TypeScript 45.33% CSS 0.09% Makefile 0.17% HTML 0.27% Dockerfile 0.15% Svelte 39.64%

ui's Introduction

Temporal UI

Prerequisites

Temporal must be running in development. (For details, see Run a dev Cluster in the documentation.)

Temporal UI requires Temporal v1.16.0 or later.

Trying it out

Using Temporal CLI

You can install Temporal CLI using Homebrew:

brew install temporal

You can start a Temporal server in development using the following command:

temporal server start-dev

You can access the UI by visiting http://localhost:8233.

Using Docker

After pulling down the lastest version of Temporal's docker-compose, you can access the UI by visiting http://localhost:8080.

Trying it out: Bleeding edge

If you want to use the most recent commit to main, you can spin up a bleeding-edge build as described below.

Once you have the prerequisites going, run the following:

pnpm install
pnpm start

Running pnpm install will attempt to download and install the most recent version of Temporal CLI into ./bin/cli/temporal. The development server will attempt to use use this version of this Temporal when starting up.

  • If that port is already in use, the UI will fallback to trying to talk to whatever process is running on that port.
  • If you do not have a version of Temporal CLI at ./bin/cli/temporal, the development server will look for a version of Temporal CLI in your path.
  • For Windows users, you will need to start Temporal using one of the methods listed above until we have sufficiently tested this functionality on Windows. (We would absolutely welcome a pull request.)

Using Docker

If you're running the development version of the UI and you want to point it at the docker-compose version of Temporal, you can run this command:

pnpn run build:docker
pnpn run preview:docker

Developing

Developing the UI has the same prequisites as trying it out. Once you've created a project and installed dependencies with pnpm install, start the development server:

pnpm start

and open localhost:3000.

By default, the application will start up with a version of the UI for the local version of Temporal. You can start the UI for Temporal Cloud by setting the VITE_TEMPORAL_UI_BUILD_TARGET target to cloud. Alternatively, you can use either of the following scripts:

pnpm run dev:local
pnpm run dev:cloud

Using Docker

If you want to point the development environment at the docker-compose version of Temporal, you can use the following command:

pnpm run dev:docker

Building

The Temporal UI must be built for either the local version or Temporal Cloud. You must set the VITE_TEMPORAL_UI_BUILD_TARGET environment variable in order to build the assets. This will be set for you if you use either of the following pnpm scripts.

pnpm run build:local
pnpm run build:cloud

The resulting assets will be placed in ./build.

You can preview the built app with pnpm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

Configuration

Set these environment variables if you want to change their defaults

Variable Description Default Stage
VITE_API Temporal HTTP API address. Set to empty `` to use relative paths http://localhost:8322 Build
VITE_MODE Build target development Build

Developing with Canary

To get a better representation of production data, you can run our UI with the canary-go repo. You will need Go installed on your machine.

canary-go

make bins
./temporal-canary start

temporal

make bins
TEMPORAL_ENVIRONMENT=development_sqlite make start

tctl

make build
./tctl config set version next
./tctl -n canary namespace register
./tctl -n default namespace register
./tctl cluster add-search-attributes -y \
 	--name CustomKeywordField --type Keyword \
 	--name CustomStringField --type Text \
 	--name CustomTextField --type Text \
 	--name CustomIntField --type Int \
 	--name CustomDatetimeField --type Datetime \
 	--name CustomDoubleField --type Double \
 	--name CustomBoolField --type Bool

To view the search attributes code: https://github.com/temporalio/docker-builds/blob/main/docker/auto-setup.sh#L297

ui-server

make build-server
./ui-server start

ui

pnpm start

ui's People

Contributors

stevekinney avatar alex-tideman avatar rossedfort avatar feedmeapples avatar laurakwhit avatar giantrobots avatar robholland avatar softwarecurator avatar temporal-data avatar dependabot[bot] avatar bashkirovn avatar lorensr avatar gracegardner avatar mend-for-github-com[bot] avatar christopherb-stripe avatar djmagee avatar andreevdm avatar djsanti avatar wyattanderson avatar swyxio avatar

Stargazers

Anthony Zboralski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.