Skip to content

Chat web-application based on websockets using .NET Core and Angular 4

Notifications You must be signed in to change notification settings

Pecral/WebSocketChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocketChat

This project is a typical chat web-application which uses WebSockets to communicate between the frontend (using Angular 4) and the backend (using .NET Core).

Requirements

Backend Usage

  1. Navigate to .NET Core backend project in ./WebSocketChat.Server/WebSocketChatServer.
  2. Restore packages with dotnet restore and start local server with dotnet run.

or..

  1. Open server solution in VS2017, wait till the NuGet packages are restored and start the IIS-Express server with F5.

Frontend Usage

  1. Navigate to ./WebSocketChat.Frontend
  2. Install required node modules with npm install
  3. Configure URL to connect to your running backend server in ./WebSocketChat.Frontend/src/environments/environment.prod.ts -> property websocketBaseUrl (you can see the url of your server in the command-line if you've started it with dotnet run). The suffix /chat shouldn't be changed.
  4. Run ng serve for a dev server. Navigate to http:https://localhost:4200/ to open the application. The app will automatically reload if you change any of the source files.