GithubHelp home page GithubHelp logo

orshitri / petshop Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.65 MB

PetShop is an Asp.Net Core MVC application of an online catalog for a pet shop. Customers can view the catalog, leave comments about the animals and navigate the site by selecting a category and view details about the animal. Admin can also edit, add and delete animal and comments. The application uses an Identity class to authenticate users.

HTML 25.70% C# 71.42% CSS 2.21% JavaScript 0.68%
asp-net-core-mvc bootstrap csharp cshtml form-validation html-helper identity javascript jquery-validation sql-server

petshop's Introduction

airport

Pet Shop

PetShop is an Asp.Net Core MVC application of an online catalog for a pet shop.
Customers can view the catalog and navigate the site by selecting a category, view the details of the animal and leave comments on the animals.
An admin can also edit, add and delete an animal, as well as edit and delete comments.
The application uses Microsoft's IdentityUser Class to authenticate users.
The application is divided into 4 separate projects (Client, Data, Models, Services), with relevant references.
So each project is responsible for a different part.

Data Base


The application saves all the data of the animals, pictures, comments, categories, etc. in a database on SQL Server (MMSQL)
The application manages another database called authentication, on which all the information related to users is saved such as email, phone, username and password, etc. (only the hash of the password is saved in the database).

Dependencies

  • .Net Core
  • ASP.Net Core MVC
  • SQL Server
  • Bootstrap
  • Jquery (jquery-validation, jquery-validation-unobtrusive)

Installing

  • Pull from here
  • Add a migration and update the local database (for the Authentication DB)
  • In the client project in the Program.cs file add the following lines of code below this line of code
    "var app = builder.Build();" (Line 38):
    using (var scop = app.Services.CreateScope())
    {
    var ctx = scop.ServiceProvider.GetRequiredService();
    ctx.Database.EnsureDeleted();
    ctx.Database.EnsureCreated();
    }
  • Then when running the project, the local database (for the PetShop DB) will be created (code first), after the database is created, the above lines can be deleted

Executing Program

  • Compile
  • Run the exe

petshop's People

Contributors

orshitri avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.