An open API service indexing awesome lists of open source software.

https://github.com/j-grosse/lit-app

Web component made with Google's Lit Element Frontend Framework
https://github.com/j-grosse/lit-app

css3 elektrotechnik lit-element multimeter voltmeter webcomponent websocket-client websocket-server

Last synced: 6 months ago
JSON representation

Web component made with Google's Lit Element Frontend Framework

Awesome Lists containing this project

README

          

# About

This app is a Voltmeter web component made with LitElement. It uses the ws Websocket library and is styled with vanilla css.

![image.png](lit-voltmeter.png)

The project is based on the LitElement TypeScript starter template from the `lit-starter-ts` package in [the main Lit repo](https://github.com/lit/lit).

## Setup

Install dependencies:

```bash
npm i
```

## Build

To build the JavaScript version of your component and watch files and rebuild when the files are modified, run the following command:

```bash
npm run build:watch
```

## Node Websocket Server

To run the node server that sends and receives websocket messages to and from the voltmeter:

```bash
node server.js
```

## Dev Server

To run the dev server and open the project in a new browser tab:

```bash
npm run serve
```