Skip to content

Screenly/clock-app-legacy

Repository files navigation

Screenly Clock App

Warning: This project has been abandoned in favor of the Clock Edge App.

Clock App Screenshot

This is an example asset for Screenly as part of the Screenly Playground.

You can view the live demo at clock.srly.io. The clock detects the viewer's location at the Cloudflare edge (country + timezone) and displays the correct local time, in the local 12/24-hour format and language.

Requirements

This project uses Bun as its package manager. Install dependencies with:

bun install

This installs Wrangler locally. Run it via bunx wrangler (or install it globally with bun add -g wrangler).

Login to Cloudflare

bunx wrangler login

Run the project in dev mode

bun run dev

Lint and test

bun run lint
bun test

Build the static assets (vendors webfonts, then minifies JS/CSS in place)

bun run build

Deploy worker

bunx wrangler deploy --env [environment name]

About

A sample clock app for Screenly.

Topics

Resources

License

Stars

Watchers

Forks

Contributors