This repo is created following Tutorial: Get started with ASP.NET Core SignalR using TypeScript and Webpack
- Node.js with npm
- Visual Studio Code
- C# for Visual Studio Code (latest version)
- .NET 6.0 SDK
- Run Webpack in release mode by executing the following command in the project root:
This command generates the client-side assets to be served when running the app. The assets are placed in the
npm run release
wwwroot
folder. - Build and run the app by executing the following command in the project root:
dotnet run
- Open a browser to
https://localhost:<port>
(check your terminal for the port). Thewwwroot/index.html
file is served. Copy the URL from the address bar. - Open another browser instance (any browser). Paste the URL in the address bar.
- Choose either browser, type something in the Message text box, and select the Send button. The unique user name and message are displayed on both pages instantly.