Skip to content

Commit

Permalink
[docs] update port in "Svelte for new developers" blog. (#7697)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
Mlocik97 and benmccann committed Jul 19, 2022
1 parent 791533e commit 52f5005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/blog/2019-04-16-svelte-for-new-developers.md
Expand Up @@ -61,7 +61,7 @@ We're going to use the [Svelte + Vite](https://github.com/vitejs/vite/tree/main/
On the command line, navigate to where you want to create a new project, then type the following lines (you can paste the whole lot, but you'll develop better muscle memory if you get into the habit of writing each line out one at a time then running it):

```bash
npm init vite my-svelte-project -- --template svelte
npm create vite@latest my-svelte-project -- --template svelte
cd my-svelte-project
npm install
```
Expand All @@ -78,7 +78,7 @@ npm run dev

Running the `dev` script starts a program called [Vite](https://vitejs.dev/). Vite's job is to take your application's source files, pass them to other programs (including Svelte, in our case) and convert them into the code that will actually run when you open the application in a browser.

Speaking of which, open a browser and navigate to http://localhost:3000. This is your application running on a local *web server* (hence 'localhost') on port 3000.
Speaking of which, open a browser and navigate to http://localhost:5173. This is your application running on a local *web server* (hence 'localhost') on port 5173.

Try changing `src/App.svelte` and saving it. The application will update with your changes.

Expand Down

0 comments on commit 52f5005

Please sign in to comment.