Simple project for a SignalR application with one backend and 3 clients. The structure is the following:
- Backend project in .NET Core. This backend has one controller and one hub that will handle the connections and will notify the clients.
- Clients:
- 2 clients to receive data with different users ids.
- 1 client to send GET requests to the controller to notify the other clients
Use these instructions to get the project up and running.
You will need the following tools:
- Visual Studio Code or Visual Studio 2019
- .NET Core SDK 3
- Node.js (version 10 or later) with npm (version 6.9.0 or later)
- Angular CLI (version 7 or later)
Follow these steps to get your development environment set up:
-
Clone the repository
-
Launch backend the project using:
dotnet run --urls="http://localhost:65179"
-
Launch the client 1&2 projects (that will receive data from the server).
npm install ng serve --port 4200 ng serve --port 4201
-
Launch the client 3 projects (that will receive data from the server)
npm install ng serve --port 4202
-
Open the three clients on a browser to see how the requests made by the client 3, are received by the client 1, 2 or both.
- ASP.NET Core 3.1
- Angular CLI 7
- Angular 7
This project is licensed under the MIT License.