Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/brandonxiang/svelte-ssr

A demo to build ssr in a very simple mode powered with svelte
https://github.com/brandonxiang/svelte-ssr

ssr svelte svelte-v3 svelte3

Last synced: 11 days ago
JSON representation

A demo to build ssr in a very simple mode powered with svelte

Awesome Lists containing this project

README

        

# svelte-ssr


license

This is a demo to build ssr in a very simple mode powered with svelte, **which is appropriately used for learning, not for production**. Obviously, [Sapper](https://sapper.svelte.dev/) is the best choice for production. Please read the sapper documention first.

In [Official Documention of Svelte](https://svelte.dev/), there are few paragraph to introduce [SSR](https://svelte.dev/docs#Server-side_component_API) SSR. This repo is going to tell you how to set up a simple svelte ssr step by step.

## Usage

To create a new project based on this template using degit:

```shell
npx degit brandonxiang/svelte-ssr svelte-ssr
cd svelte-ssr
yarn
# or
npm i
```

## Development

```shell
yarn dev
# or
npm run dev
```

## Reference

- [brandonxiang/svelte-webpack-mpa](https://github.com/brandonxiang/svelte-webpack-mpa)

## LICENSE

[MIT](./LICENSE) @brandonxiang