Skip to content

Commit 4aa3045

Browse files
committed
Initial commit
0 parents  commit 4aa3045

10 files changed

+2940
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
public/bundle.*

README.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
*Psst — looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)*
2+
3+
---
4+
5+
# svelte app
6+
7+
This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template.
8+
9+
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
10+
11+
```bash
12+
npx degit sveltejs/template svelte-app
13+
cd svelte-app
14+
```
15+
16+
*Note that you will need to have [Node.js](https://nodejs.org) installed.*
17+
18+
19+
## Get started
20+
21+
Install the dependencies...
22+
23+
```bash
24+
cd svelte-app
25+
npm install
26+
```
27+
28+
...then start [Rollup](https://rollupjs.org):
29+
30+
```bash
31+
npm run dev
32+
```
33+
34+
Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
35+
36+
37+
## Deploying to the web
38+
39+
### With [now](https://zeit.co/now)
40+
41+
Install `now` if you haven't already:
42+
43+
```bash
44+
npm install -g now
45+
```
46+
47+
Then, from within your project folder:
48+
49+
```bash
50+
cd public
51+
now
52+
```
53+
54+
As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon.
55+
56+
### With [surge](https://surge.sh/)
57+
58+
Install `surge` if you haven't already:
59+
60+
```bash
61+
npm install -g surge
62+
```
63+
64+
Then, from within your project folder:
65+
66+
```bash
67+
npm run build
68+
surge public
69+
```

0 commit comments

Comments
 (0)