Skip to content

abdoemad/Xamarin-Azure-Demo

Repository files navigation

Xamarin Azure Demo

Xamarin.Forms project for learning purpose, still under development.

Build & Try

You can build the solution and run Android.Xamarin App using those users “userOrders” “emptyUser”

Pages

Login Product Catalog Add to Cart Cart
alt text alt text alt text alt text

Menu

alt text

Purchasing cycle functionalities

Business Details
Login online / offline with input validation Online to get the user id.
List products (offline sync) Get products from the API
Display product details to add to cart
List cart items and submit to API

3rd parties:

  • MVVM Light
  • Automapper
  • Xam Plugin Connectivity
  • FontAwesome

Projects

  • Mobile app
    • Xamarin.Forms 3.5 into .Net Standard project (2.0)
    • Xamarin.Android
    • Xamarin.IOS
  • EShope Mobile backend: Web API project (.Net Framework 4.7.2)
  • EShope Admin: .Net Core (2.2) run Angular with SignalR

Custom Views

  • Shopping Bar
  • Menu

Succeed Techniques to render shopping bar view:

  • Direct composition in the base view
  • ControlTemplate & ContentPresenter

Xamarin.Forms skeleton

Pages design

View Model Layer & Validation design (Attribute-based)

Interfaces Overview

  • IDialogService
  • INavigattionService
  • IMapper
  • IAPIConsumer
  • IConnectinoService
  • IProductService
  • IOrderService
  • IAuthenticationService

Database design

SQL Server with Entity Framework (Code First with Migrations)

Mobile backend Endpoints

Endpoint URL
List Products http://eshopemobile.azurewebsites.net/tables/product?ZUMO-API-VERSION=2.0.0
List Users https://eshopemobile.azurewebsites.net/api/users?ZUMO-API-VERSION=2.0.0
User Orders http://eshopemobile.azurewebsites.net/tables/order?ZUMO-API-VERSION=2.0.0&userId=32eb7603-8179-4774-8f02-133060e0196d

EShope Admin

Streaming new orders: https://eshopeadmin.azurewebsites.net/orders

Azure Arch

Releases

No releases published

Packages

No packages published