https://github.com/jharrilim/chatroom
Chat App using .NET Core 2.2 Signalr WebSocket and Angular 7 client.
https://github.com/jharrilim/chatroom
angular angular7 csharp dotnet dotnet-core material-ui netcore netcore2 signalr websocket
Last synced: 2 months ago
JSON representation
Chat App using .NET Core 2.2 Signalr WebSocket and Angular 7 client.
- Host: GitHub
- URL: https://github.com/jharrilim/chatroom
- Owner: jharrilim
- Created: 2018-08-06T04:17:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T02:17:04.000Z (over 7 years ago)
- Last Synced: 2024-12-31T09:42:11.499Z (over 1 year ago)
- Topics: angular, angular7, csharp, dotnet, dotnet-core, material-ui, netcore, netcore2, signalr, websocket
- Language: TypeScript
- Homepage: https://dotnet.microsoft.com/apps/aspnet/real-time
- Size: 193 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebSocket-Angular
.NET Core 2.1 Signalr WebSocket and Angular 6 client.
## Dependencies
- Node 10.8.0
- npm 6.2.0
- Global: @angular/cli@6.1.2
- dotnet 2.1.302
## Setup
### Server
> Run server as a console application with the port 8060.
> If you choose to use a different port,
> you must update the port on the client side as well which can be found [here](Client/src/app/components/chat/chat.component.ts#L20).
### Client
> Install node packages and run on port 4200. If you want to run the client on a different port,
> you must update the port found [here](Server/Startup.cs#L38).
## Build Steps
### Client
ng cli is configured to output build to wwwroot on the Server.
```bash
# Install packages
cd Client/
npm i
# Build prod
ng build --prod
```
### Server
```bash
# Assuming you are still in Client
cd ../Server
dotnet build -c Release
```
#### Run Server
```bash
# Use sudo for running on port 80
sudo dotnet bin/Release/netcoreapp2.1/WebSocket.Server.dll
```
If you are using windows, run PowerShell as admin and use the same command as above without sudo:
```powershell
dotnet Server/bin/Release/netcoreapp2.1/WebSocket.Server.dll
```