https://github.com/cdoremus/web-component-demos
Demos web components running in a Deno http server
https://github.com/cdoremus/web-component-demos
deno typescript webcomponents
Last synced: 5 months ago
JSON representation
Demos web components running in a Deno http server
- Host: GitHub
- URL: https://github.com/cdoremus/web-component-demos
- Owner: cdoremus
- Created: 2024-04-23T02:32:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T02:26:32.000Z (about 2 years ago)
- Last Synced: 2025-07-30T17:33:53.683Z (11 months ago)
- Topics: deno, typescript, webcomponents
- Language: JavaScript
- Homepage: https://web-component-demo.deno.dev/
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Component Demo
This repo shows a number of [Web Component](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) examples demonstrating different features of the standard running in a simple [Deno](https://deno.com) web server.
To run the repo locally, you need to [install Deno](https://docs.deno.com/runtime/manual/getting_started/installation) and then run the following command:
```
deno task start
```
The application can then accessed at http://localhost:8000/
There is also a task in `deno.json` called `cli` that runs the `deno serve` command that is available in Deno v1.34+.
This code has been deployed on [Deno Deploy](https://deno.com/deploy) and can be accessed here: https://web-component-demo.deno.dev
**NOTE:** The tests in the `test` folder do not work. A way to test web components outside of a Node runtime does not appear to exist at this time.