Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thescientist13/lit-ssr-demo
A repo for running Lit+SSR demos.
https://github.com/thescientist13/lit-ssr-demo
Last synced: about 1 month ago
JSON representation
A repo for running Lit+SSR demos.
- Host: GitHub
- URL: https://github.com/thescientist13/lit-ssr-demo
- Owner: thescientist13
- Created: 2021-08-24T00:37:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-24T16:34:24.000Z (over 3 years ago)
- Last Synced: 2024-10-29T04:01:13.128Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lit-ssr-demo
A repo for running and testing out use cases with the [**Lit+SSR** demos](https://github.com/lit/lit/tree/main/packages/labs/ssr/src/demo).
## Setup
1. Make sure you have [NodeJS >= 14.x](https://nodejs.org/) installed
1. After cloning this repo, run `npm install`## Server
You can run both server demos as follows:
* `npm run serve:global` - use global NodeJS scope for shimming
* `npm run serve:vm` - uses expiremental NodeJS [vm modules](https://nodejs.org/api/vm.html) for shimmingRun either command to kick off the server and then load it over `localhost:8080` in your browser.