Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brandonxiang/svelte-ssr
- Owner: brandonxiang
- License: mit
- Created: 2019-07-13T03:39:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T23:22:26.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T12:58:22.495Z (28 days ago)
- Topics: ssr, svelte, svelte-v3, svelte3
- Language: JavaScript
- Homepage:
- Size: 1.81 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-ssr
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