Giter Club home page Giter Club logo

elegant-sofas's Introduction

				    [ CYB206: WEB APPLICATION SECURITY ]
					  Group Project Prototype

Beta Group -----------> Hemn Hamad Ameen Amanjit Kaur Sandeep Singh >=====================> ASP.NET Core MVC <=======================<

====> PART 1: Get started with ASP.NET Core MVC <====

2024-02-17 2:33 PM

  • Created new project named "Sofa App", having three folders: Controllers, Models and Views
  • changed the Home page, adding a Sofa image with some format creativity.

====> PART 2: Add a controller <====

2024-02-17 2:42 PM

  • Added a controller under Controller folder named "HelloWorldController" and updated with a some code.
  • Now the page URL is like this: https://localhost:7078/helloworld --> showing this message "This is my default action..."

====> PART 3: Add a View <====

2024-02-17 2:48 PM

  • Created a new forlder named "HelloWorld", adding a Razor "Index.cshtml" to the folder and replacing the code with some new code.
  • Updating the content of the Views/Shared/_Layout.cshtml file with the given code. Adding App name "SOFAS"
  • Running the app and making sure the page loads with no errors.

====> PART 4: Add a Model <====

2024-02-17 3:02 PM

  • Added a class under Model forlder and named "SOFAS.cs"
  • Added New Scaffolded Item under Controller forlder name "SOFASController", adding SQL Server as database provider.
  • Now, coming to an important stage ----> "Migration", here is how it's done: From the Tools menu, select NuGet Package Manager > Package Manager Console, then running these commands in the powershell: Add-Migration InitialCreate & Update-Databas
  • Testing the App: it's running without errors.

====> PART 5: Work with a database in an ASP.NET Core MVC app <====

2024-02-17 3:10 PM

  • Examining the database: View Designer & View Data >> brwosing SOFAS.cs content in the database
  • Seed the database by creating "SeedData" under Models folder and updating the code.
  • Add the seed initializer: Replacing the contents of Program.cs with new generated code.
  • Running the App, it shows a table of all the SOFAS stored in the database with their details.

====> PART 6: Controller Methods and Views in ASP.NET Core <====

2024-02-17 3:20 PM

  • Tested the app by editing the SOFAS records (edit, create and delete) Sofas.
  • Reviewed the code as per the tutorial, updating the Models/SOFAS.cs file and add the highlighted lines
  • Running the App, it works properly..

====> PART 7: add search to an ASP.NET Core MVC app <====

2024-02-17 3:30 PM

  • Update the Index method found inside Controllers/SOFASController.cs with the some code
  • Update the Views/SOFASs/Index.cshtml file, and add the Filter text box to the page

====> PART 8: Add a New Field to an ASP.NET Core MVC app <====

2024-02-17 3:42 PM

  • Adding a "Rating" property to Models/SOFAS.cs module
  • Edit the /Views/SOFASs/Index.cshtml file and add a Rating field
  • Update the /Views/SOFASs/Create.cshtml with a Rating field
  • Update the SeedData, adding "Rating" to each record
  • Running Migration, build done
  • Database has been updated..

====> PART 9: Add a Validation an ASP.NET Core MVC app <====

2024-02-17 3:50 PM

  • Update the SOFAS class to take advantage of the built-in validation attributes Required, StringLength, RegularExpression, Range and the DataType
  • Field Validation: validating the data input in the fields. (e.g. String for Product, Decimals for Price..etc)

====> PART 9: 10, Examine the Details and Delete Methods of an ASP.NET Core App <====

2024-02-17 4:00 PM

  • Examined the Details method.

  • Examine the Delete and DeleteConfirmed methods

      					============> END OF THE APP NOTES <============ 
    

&&&&&&& Finally saving the updates to GitHub repository &&&&&&& Here is repo URL:

Source of Data: The data has been collected from teppermans: https://www.teppermans.com/furniture/living-room/sofas-sectionals/sofas

====================================== Shared workload: Group Work Perfomance

  • We togther created the app, ran and tested, every step of the way.
  • Added the README file, putting our inputs and observations.
  • Created a gitHub repo for the App.
  • Updated the databse with the Sofa products. "# Prosofa" "# Prosofa" "# test" "# test" "# test" "# test"

elegant-sofas's People

Contributors

hemin979 avatar unknownlearner avatar sofasbeta avatar

Forkers

aman315-code

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.