WebChat is real time web based chatting app. .Net Core Web API, SignalR, EntityFramework, Angular 8, RxJS technologies are used on project.
API is configured to work as standalone. Before the start API you must do belowing steps;
- Check EF connection string in
NGA.API.appSettings.json
, if needs, edit it for your DB. - Open Package Manager Console, then select NGA.Data project and run Update-Database command.
- You can start the API now.
You must add users to DB via sending POST Requests.DB Initializer class only adds default Groups to DB!
- DB dosen't have any user, you must create test users. You can use register option on Login page(V0.2 or higher).
HTTP Request type: POSTRoute:http://localhost:5008/api/user/createtoken
Model;
{ "UserName": "admin", "PasswordHash":"Admin.123", "DisplayName":"Admin", //Visible name for other users "Status":4, //No need to change "Email":"", //No need to change "IsAdmin":0, //No need to change "IsBanned":0, //No need to change "About":" - " //This fields for show on Profile page as description }
- Open FrontEnd folder and run
ng serve
command for start Angular!