This is online chat application with Angular, ASP.NET Core, SignalR and SqlServer following the principles of Clean Architecture. It has the following functionalities
- As a new user you can resgister with your email address, first name and last name
- Registered user can login with his email address.
- LoggedIn user has dashboard and from where he can see list users and he can chat with any one from the list. Chat always happen between two users.
- User can see chat history.
- User can delete his chat history in one of two ways. He or she can delete chat data for himselft/herself or everyone.
- Application has the sign out functionality.
- ASP.NET Core 3.1
- Entity Framework Core 3.1
- Angular 9
- Signal R
- Sql Server
- Autofac
- Moq
- XUnit
- xunit.runner.visualstudio
- FluentAssertions
- Bootstrap
- Install Latest Microsoft SQL Server
- Install Visual Studio 2019
- Install the latest .NET Core 3.1 SDK
- Install the latest Node.js LTS
- Run
npm install -g @angular/cli
to install latest version of angular CLI - Download source code from
https://github.com/Ehasaniceiu04/simple-chat.git
Note: Please walkthrogh this simple-chat/simple chat development environment preparation guidelines.docx
to know how to prepare your environment and to run this online chat application in details.
- Navigate to the workspace folder, such as
simple-chat-ui
. - Open terminal window
- Run
npm install
to install all dependencies used in application. - Run
npm start
to run chat application in browser. - Browse
https://localhost:4500
to view chat app in browser
Note: Please walkthrogh this simple-chat/simple chat development environment preparation guidelines.docx
to know how to prepare your environment and to run this online chat application in details.
The Application uses data-store in SQL Server.
Update the SimpleChatConnectionString connection string within simple-chat-api/src/Ehasan.SimpleChat.API/appsettings.json , so that application can point to a valid SQL Server instance.
"ConnectionStrings": {
"SimpleChatConnectionString": "Server=ehasan-dbms; Database=SimpleChatDb; Trusted_Connection=True; MultipleActiveResultSets=True;"
},
When you run update-database command, the migrations will be applied and the database will be automatically created.
This will contain all entities, enums, exceptions, interfaces, types and logic specific to the domain layer.
This layer contains all application logic. It is dependent on the domain layer, but has no dependencies on any other layer or project. This layer defines interfaces that are implemented by outside layers. For example, if the application need to access a message service, a new interface would be added to application and an implementation would be created within infrastructure.
This layer contains classes for accessing external resources such as file systems, web services, smtp, and so on. These classes should be based on interfaces defined within the application layer.
This layer contains unit tests.
This layer is a restfull api based on .Net Core 3.1. This layer depends on both the Application and Infrastructure layers, however, the dependency on Infrastructure is only to support dependency injection. Therefore only Startup.cs should reference Infrastructure.
Front-end is a single page application based on angular 9. This only communicates with restfull api layer to store or retrieve data.