mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 04:22:12 +00:00
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# Svelte Example
|
|
|
|
This directory is a brief example of a [Svelte](https://svelte.dev/) app with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction) that can be deployed with ZEIT Now and zero configuration.
|
|
|
|
## Deploy Your Own
|
|
|
|
Deploy your own Svelte project, along with Serverless Functions, with ZEIT Now.
|
|
|
|
[](https://zeit.co/import/project?template=https://github.com/zeit/now/tree/master/examples/svelte)
|
|
|
|
_Live Example: https://svelte.now-examples.now.sh_
|
|
|
|
### How We Created This Example
|
|
|
|
To get started with Svelte, along with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction), deployed with ZEIT Now, you can use [degit](https://github.com/Rich-Harris/degit) to initialize the project:
|
|
|
|
```shell
|
|
$ npx degit sveltejs/template my-svelte-project
|
|
```
|
|
|
|
### Deploying From Your Terminal
|
|
|
|
You can deploy your new Svelte project, along with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction), with a single command from your terminal using [Now CLI](https://zeit.co/download):
|
|
|
|
```shell
|
|
$ now
|
|
```
|