https://github.com/lyohaplotinka/svelte-easyroute-ssr-template
A simple Svelte application with Svelte Easyroute and SSR
https://github.com/lyohaplotinka/svelte-easyroute-ssr-template
Last synced: 3 months ago
JSON representation
A simple Svelte application with Svelte Easyroute and SSR
- Host: GitHub
- URL: https://github.com/lyohaplotinka/svelte-easyroute-ssr-template
- Owner: lyohaplotinka
- Created: 2020-11-04T20:25:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T21:48:25.000Z (about 4 years ago)
- Last Synced: 2024-05-02T05:17:28.485Z (about 1 year ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Svelte Easyroute: SSR template
This is a project template for [Svelte Easyroute](https://github.com/lyohaplotinka/svelte-easyroute) with SSR.
*You need to have [Node.js](https://nodejs.org) installed.*
## Get started
Install the dependencies
```bash
cd svelte-easyroute-ssr-template
npm install
```If you want to try SSR right now, execute `npm run build` first, and
then `npm run start:ssr`.### package.json scripts
* `build` - build both server-side and client-side app
* `dev` - run client-side app in development mode (hot-reload, etc.)
* `start` - run "sirv" for build client-side app (without SSR)
* `start:ssr` - run Express.js server with SSR