Assignment - 03 - Security, Ajax With RESTful API
Assignment - 03 - Security, Ajax With RESTful API
Introduction
Imagine you're an employee of a product retailer named eStore. Your manager
has asked you to develop a Web application for member management, product
management, and order management. The application has a default account
whose email is “[email protected]” and password is “admin@@” that stored in
the appsettings.json.
Assignment Objectives
In this assignment, you will:
1|Page
§ Use the Visual Studio.NET to create a Web application and ASP.NET Core
Web API project.
§ Perform CRUD actions using ADO.NET or Entity Framework Core.
§ Use LINQ to query and sort data.
§ Apply 3-layers architecture to develop the application.
§ Apply Repository pattern and Singleton pattern in a project.
§ Add CRUD and searching actions to the Web application combination with
AJAX request.
§ Apply to validate data type for all fields.
§ Run the project and test the actions of the Web application.
2|Page
Main Functions
§ Use Identity to manage User, manage login authentication process, build
application with ASP.NET's account registration, login/logout function,
configure Identity lockout to lock user if login fails many times.
§ Create Web API with Product management, and Order management: Read,
Create, Update and Delete actions.
§ Create Client application (Web application) interactive with WebAPI using
AJAX techniques to perform these functions:
o Search ProductName (keywork of ProductName) and UnitPrice
o Create a report statistics sales by the period from StartDate to
EndDate, and sort sales in descending order
o Manage product
o Add product to cart, manage cart and make order
§ Member authentication by Email and Password. If the user is “Admin” then
allows to perform all actions, otherwise, the normal user is allowed to
view/update the profile, add product to cart, manage cart and view their
orders history.
Guidelines
3|Page
Activity 02: Develop BusinessObject project
Step 01. Write codes to create classes and definition all data members
Step 02. Write codes to perform business rules for data members
4|Page
Activity 05: Develop eStore project
Step 01. Create ASP.NET Core MVC project named eStore.
Step 02. Use Identity to manage User, manage login authentication process,
build application with ASP.NET's account registration, login/logout function,
configure Identity lockout to lock user if login fails many times.
Step 03. Ajax request with eStoreAPI.
Step 04. Test Project with Assignment 03 requirements.
5|Page