Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tobinbradley committed Oct 16, 2019
1 parent e39e7a4 commit 71fbc91
Showing 1 changed file with 6 additions and 31 deletions.
37 changes: 6 additions & 31 deletions README.md
Expand Up @@ -7,8 +7,7 @@ This is a basic Svelte [Svelte](https://svelte.dev) template customized for my g
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):

```bash
npx degit sveltejs/template svelte-app
cd svelte-app
npx degit tobinbradley/svelte-template svelte-app
```

*Note that you will need to have [Node.js](https://nodejs.org) installed.*
Expand All @@ -26,44 +25,20 @@ npm install
...then start [Rollup](https://rollupjs.org):

```bash
npm run dev
npm start
```

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.
Navigate to [localhost:3000](http://localhost:3000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`.


## Deploying to the web

### With [now](https://zeit.co/now)

Install `now` if you haven't already:

```bash
npm install -g now
```

Then, from within your project folder:

```bash
cd public
now
```

As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon.

### With [surge](https://surge.sh/)

Install `surge` if you haven't already:

```bash
npm install -g surge
```

Then, from within your project folder:
To build the site for production:

```bash
npm run build
surge public
```

Copy the contents of the `public` folder to your web server.

0 comments on commit 71fbc91

Please sign in to comment.