Valkendorm / smart-lightbulb-demo

Home Page:https://smart-lightbulb-demo.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart Lightbulb Demo

This project demonstrates the evolution of a lightbulb as it grows in features and complexity. Each demo is accompanied with its corresponding state machine, which were created using the Stately Studio, and are executed using XState v5.

Links

Development

Install dependencies

pnpm install

Installs the required dependencies for project development.

Run development server

pnpm dev

Starts Vite dev server in the current directory and enters watch mode.

Building & previewing project

pnpm build

Builds the project and outputs to the ./dist folder.

pnpm preview

Locally runs the production build from its ./dist folder.

Testing

The project is configured with Vitest on a bare minimal setup, for demo purpose.

Only the first version of the smart lightbulb machine has tests, which were generated in most part by the Stately Studio.

Run tests locally

pnpm test

Deployment

Deployment is automated with Vercel.

About

https://smart-lightbulb-demo.vercel.app


Languages

Language:TypeScript 83.2%Language:CSS 14.4%Language:JavaScript 1.3%Language:HTML 1.1%