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).
- Standalone .NET Core SDK or alternatively Visual Studio 2017.
- node package manager (NPM), part of node.js.
- Angular CLI -> install with
npm install -g @angular/cli
- Navigate to .NET Core backend project in
./WebSocketChat.Server/WebSocketChatServer. - Restore packages with
dotnet restoreand start local server withdotnet run.
or..
- Open server solution in VS2017, wait till the NuGet packages are restored and start the IIS-Express server with F5.
- Navigate to
./WebSocketChat.Frontend - Install required node modules with
npm install - Configure URL to connect to your running backend server in
./WebSocketChat.Frontend/src/environments/environment.prod.ts-> propertywebsocketBaseUrl(you can see the url of your server in the command-line if you've started it withdotnet run). The suffix/chatshouldn't be changed. - Run
ng servefor a dev server. Navigate tohttp://localhost:4200/to open the application. The app will automatically reload if you change any of the source files.