FastLearners Web App
A web application using .net 5
This is a web application that provides a platform for learning programming languages and technologies including Videos and articles.
Introduction
Introduction Video:
Technologies
- C#
- ASP.NET Core 5
- Entity Framework Core
- LINQ
- Sql Server
- Asp.Net core Identity
- JavaScript
- JQuery
- AJAX
- HTML
- Razor
- Bootstrap
- CSS
- Responsive web design
- SmarterASP.NET Host
- Font Awesome
- GUID
Pre-requisites
- .Net SDK
- Visual studio 2019 OR VSCode with C# extension
- Microsoft SQL Server
Installation
-
Clone the repo:
git clone https://github.com/Ali-Pourgheysari/FastLearnersMVCWebApplication.git
-
Change directory:
cd FastLearnersMVCWebApplication
-
Restore packages:
dotnet restore FastLearnersMVCWebApplication.sln
-
Target Microsoft SQL Server:
- Run with Microsoft SQL Server:
- Delete
Migrations
folder from FastLearnersMVCWebApplicationData
- Change setting in appsettings.json, change existing connection string to your local Sql Server connection string
-
Once the project is running first try to add an admin to the database:
- Register as a new user
- Go to database Management Studio
- Open the related database
- Copy Id Property of Registered user (That is a GUID) in AspNetUsers Table and paste it into UserId Property in AspNetUserRoles table
- Make a GUID for Id Property in AspNetRoles and insert following values in this table:
- Id: GUID
- Name: Admin
- NormalizedName: ADMIN
- Copy Id Property of admin in AspNetRoles table and paste it into RoleId Property in AspNetUserRoles table
Note: For production use Identity server hosted with appropriate configuration.
Here is the database schema: