Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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 shimming

Run either command to kick off the server and then load it over `localhost:8080` in your browser.