A simple C# ASP.NET Core project that represent my knowledge of technology.
Project contains: CRUD operations, authorization, authentication with Google and Facebook ( or creating new account ), cart ( that works with session )
- C# 6.0
- ASP.NET Core MVC
- Entity Framework
- OAuth 2.0 ( Google, Facebook )
- JavaScript
- AJAX
- HTML
- CSS
First of all you need to initialize user secrets . You can do it from console or using Visual Studio. You should :
-
Initialize "ConnectionStrings": { "shopDb": "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=shopDb;Integrated Security=True;" }, "AdminEmail": "[email protected]", "AdminPassword": "password",
-
Optional values : "Authentication:Google:ClientSecret": "your value" "Authentication:Google:ClientId": "your value" "Authentication:Facebook:AppId": "your value" "Authentication:Facebook:AppSecret": "your value" It will enable authentication by Google or Facebook.
To create categories and products you neeed login as admin ( it has been initialized earlier ) and press Admin Controller.
Also, you can edit your products. You can add and delete photos without reloading page ( it implements AJAX ).
- Adding users
- Remove existing users,
- Give another user roles.