Skip to content

IgorDX/asp-net-shop-practice

Repository files navigation

Shop

Project description:

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 )

Used technologies:

  • C# 6.0
  • ASP.NET Core MVC
  • Entity Framework
  • OAuth 2.0 ( Google, Facebook )
  • JavaScript
  • AJAX
  • HTML
  • CSS

Project

Getting started:

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.

After that, you can run the application.

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 ).

Additional admin's functionality:

  • Adding users
  • Remove existing users,
  • Give another user roles.

Default user can only see products and add it to the cart.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published