Skip to content

Commit 0895d8d

Browse files
author
Simona Cotin
authored
docs: move list of ports closer to corresponding step (#321)
1 parent 0ea7146 commit 0895d8d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ To use SWA CLI with your local dev server, follow these two steps:
7070
swa start http://<APP_DEV_SERVER_HOST>:<APP_DEV_SERVER_PORT>
7171
```
7272

73+
Here is a list of the default ports used by some popular dev servers:
74+
75+
| Tool | Port | Command |
76+
| ---------------------------------------------------------------------------------- | ---- | --------------------------------- |
77+
| [Angular](https://angular.io/cli) | 4200 | `swa start http://localhost:4200` |
78+
| [Vue](https://cli.vuejs.org/) | 8080 | `swa start http://localhost:8080` |
79+
| [React (Create React App)](https://reactjs.org/docs/create-a-new-react-app.html) | 3000 | `swa start http://localhost:3000` |
80+
| [Blazor WebAssembly](https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor) | 5000 | `swa start http://localhost:5000` |
81+
| [Hugo](https://gohugo.io/commands/hugo_server/) | 1313 | `swa start http://localhost:1313` |
82+
| [Svelte (sirv-cli)](https://github.com/lukeed/sirv/tree/master/packages/sirv-cli/) | 5000 | `swa start http://localhost:5000` |
83+
| [Gatsby](https://www.gatsbyjs.com/docs/gatsby-cli/) | 8000 | `swa start http://localhost:8000` |
84+
| [Next.js](https://nextjs.org/) | 3000 | `swa start http://localhost:3000` |
85+
7386
Instead of starting a dev server separately, you can provide the startup command to the CLI.
7487

7588
```bash
@@ -86,20 +99,7 @@ swa start http://localhost:4000 --run "jekyll serve"
8699
swa start http://localhost:4200 --run "./startup.sh"
87100
```
88101

89-
Here is a list of the default ports used by some popular dev servers:
90-
91-
| Tool | Port | Command |
92-
| ---------------------------------------------------------------------------------- | ---- | --------------------------------- |
93-
| [Angular](https://angular.io/cli) | 4200 | `swa start http://localhost:4200` |
94-
| [Vue](https://cli.vuejs.org/) | 8080 | `swa start http://localhost:8080` |
95-
| [React (Create React App)](https://reactjs.org/docs/create-a-new-react-app.html) | 3000 | `swa start http://localhost:3000` |
96-
| [Blazor WebAssembly](https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor) | 5000 | `swa start http://localhost:5000` |
97-
| [Hugo](https://gohugo.io/commands/hugo_server/) | 1313 | `swa start http://localhost:1313` |
98-
| [Svelte (sirv-cli)](https://github.com/lukeed/sirv/tree/master/packages/sirv-cli/) | 5000 | `swa start http://localhost:5000` |
99-
| [Gatsby](https://www.gatsbyjs.com/docs/gatsby-cli/) | 8000 | `swa start http://localhost:8000` |
100-
| [Next.js](https://nextjs.org/) | 3000 | `swa start http://localhost:3000` |
101-
102-
> Note: Also when starting the CLI through a dev server, use port 4280 (`http://localhost:4280`) to access the application with the emulated services.
102+
Go to 4280 (`http://localhost:4280`) to access the application with the emulated services.
103103

104104
### Serve both the static app and API
105105

0 commit comments

Comments
 (0)