Browse Source

Updated tests project and documentation

pull/49/merge
Javier Suárez Ruiz 8 years ago
parent
commit
ea2aa57426
13 changed files with 110 additions and 0 deletions
  1. BIN
      src/Mobile/Images/AndroidEmulator.png
  2. BIN
      src/Mobile/Images/Auth.png
  3. BIN
      src/Mobile/Images/Catalog.png
  4. BIN
      src/Mobile/Images/Filter.png
  5. BIN
      src/Mobile/Images/MacAgent.png
  6. BIN
      src/Mobile/Images/OrderDetail.png
  7. BIN
      src/Mobile/Images/Preview.png
  8. BIN
      src/Mobile/Images/Profile.png
  9. BIN
      src/Mobile/Images/Settings.png
  10. BIN
      src/Mobile/Images/ShoppingCart.png
  11. BIN
      src/Mobile/Images/Updates.png
  12. +107
    -0
      src/Mobile/README.md
  13. +3
    -0
      src/Mobile/eShopOnContainers.Xamarin.Tests.sln

BIN
src/Mobile/Images/AndroidEmulator.png View File

Before After
Width: 677  |  Height: 638  |  Size: 48 KiB

BIN
src/Mobile/Images/Auth.png View File

Before After
Width: 497  |  Height: 879  |  Size: 431 KiB

BIN
src/Mobile/Images/Catalog.png View File

Before After
Width: 497  |  Height: 879  |  Size: 448 KiB

BIN
src/Mobile/Images/Filter.png View File

Before After
Width: 497  |  Height: 879  |  Size: 23 KiB

BIN
src/Mobile/Images/MacAgent.png View File

Before After
Width: 582  |  Height: 542  |  Size: 15 KiB

BIN
src/Mobile/Images/OrderDetail.png View File

Before After
Width: 497  |  Height: 879  |  Size: 98 KiB

BIN
src/Mobile/Images/Preview.png View File

Before After
Width: 320  |  Height: 571  |  Size: 189 KiB

BIN
src/Mobile/Images/Profile.png View File

Before After
Width: 497  |  Height: 879  |  Size: 43 KiB

BIN
src/Mobile/Images/Settings.png View File

Before After
Width: 497  |  Height: 879  |  Size: 21 KiB

BIN
src/Mobile/Images/ShoppingCart.png View File

Before After
Width: 497  |  Height: 879  |  Size: 79 KiB

BIN
src/Mobile/Images/Updates.png View File

Before After
Width: 770  |  Height: 427  |  Size: 17 KiB

+ 107
- 0
src/Mobile/README.md View File

@ -0,0 +1,107 @@
#eShopOnContainers
eShopOnContainers is a reference app whose imagined purpose is to serve the mobile workforce of a fictitious company that sells products. The app allow to manage the catalog, view products, manage the basket and the orders.
<img src="Images/Preview.png" alt="eShopOnContainers" Width="320" />
###Try it out:
You can download and build the app's source as-is, preconfigured to consume our Azure service instance.
###Supported platforms: iOS, Android and Windows
###The app architecture consists of two parts:
1. A Xamarin.Forms mobile app for iOS, Android and Windows.
2. A .NET Web API-backed Entity Framework based Azure Mobile Service for data.
**The Azure Mobile Service does not need to be deployed by you.** There is already an instance of the service up and running in Azure, and the mobile app is configured by default to consume that service instance. We've included the code for the service so that you may run your own service instance on Azure if you'd like.
##Xamarin.Forms App (eShopOnContainers)
This project exercises the following platforms, frameworks or features:
* Xamarin.Forms
* XAML
* Bindings
* Converters
* Central Styles
* Custom Renderers
* Animations
* IoC
* Messaging Center
* Custom Controls
* Cross Plugins
* XFGloss
* xUnit Tests
* Azure Mobile Services
* C# backend
* WebAPI
* Entity Framework
* Identity Server 4
##Three platforms
The app targets **three** platforms:
* iOS
* Android
* Universal Windows Platform (UWP)
* UWP supported only in Visual Studio, not Xamarin Studio
As of 29/11/2016, eShopOnContainers features **89.2% code share** (7.2% iOS / 16.7% Android / 8.7% Windows).
## Requirements
* [Visual Studio __2015__](https://www.visualstudio.com/en-us/products/vs-2015-product-editions.aspx) (14.0 or higher) to compile C# 6 langage features (or Visual Studio MacOS)
* Xamarin add-ons for Visual Studio (available via the Visual Studio installer)
* __Visual Studio Community Edition is fully supported!__
## Setup
#### [1. Ensure the Xamarin platform is installed](http://developer.xamarin.com/guides/cross-platform/getting_started/installation/)
#### 2. Ensure Xamarin are updated
Xamarin will periodically automatically check for updates. You can also manually check for updates.
<img src="Images/Updates.png" alt="Ensure Xamarin are updated" Width="600" />
### 3. Project Setup
Restore NuGet packages for the project.
### 4. Ensure Android Emulator is installed
You can use any Android emulator although it is highly recommended to use an x86 based version.
<img src="Images/AndroidEmulator.png" alt="Visual Studio Android Emulator" Width="600" />
**Note**: The Visual Studio Android Emulator cannot run well inside a virtual machine or over Remote Desktop or VNC since it relies on virtualization and OpenGL.
To deploy and debug the application on a physical device, refer to these [link](https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-device/).
### 5. Ensure Mac connection
To set up the Mac host, you must enable communication between the Xamarin extension for Visual Studio and your Mac.
<img src="Images/MacAgent.png" alt="Connect with a Mac" Width="600" />
## Screens
The app has the following screens:
* a auth screen
* a catalog list
* a profile section with a order list
* a readonly order detail screen
* a customizable basket
* a checkout screen
<img src="Images/Auth.png" alt="Login" Width="210" />
<img src="Images/Catalog.png" alt="Catalog" Width="210" />
<img src="Images/Filter.png" alt="Filter catalog" Width="210" />
<img src="Images/Profile.png" alt="Profile" Width="210" />
<img src="Images/OrderDetail.png" alt="Order details" Width="210" />
<img src="Images/ShoppingCart.png" alt="Basket" Width="210" />
<img src="Images/Settings.png" alt="Settings" Width="210" />
## Clean and Rebuild
If you see build issues when pulling updates from the repo, try cleaning and rebuilding the solution.
## Copyright and license
* Code and documentation copyright 2016 Microsoft Corp. Code released under the [MIT license](https://opensource.org/licenses/MIT).

+ 3
- 0
src/Mobile/eShopOnContainers.Xamarin.Tests.sln View File

@ -409,6 +409,7 @@ Global
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.AppStore|x64.ActiveCfg = AppStore|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.AppStore|x64.ActiveCfg = AppStore|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.AppStore|x86.ActiveCfg = AppStore|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.AppStore|x86.ActiveCfg = AppStore|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|Any CPU.ActiveCfg = Debug|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|Any CPU.Build.0 = Debug|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|ARM.ActiveCfg = Debug|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|ARM.ActiveCfg = Debug|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|iPhone.ActiveCfg = Debug|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|iPhone.ActiveCfg = Debug|iPhone
{B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|iPhone.Build.0 = Debug|iPhone {B68C2B56-7581-46AE-B55D-D25DDFD3BFE3}.Debug|iPhone.Build.0 = Debug|iPhone
@ -461,6 +462,8 @@ Global
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.AppStore|x86.Build.0 = Release|x86 {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.AppStore|x86.Build.0 = Release|x86
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.AppStore|x86.Deploy.0 = Release|x86 {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.AppStore|x86.Deploy.0 = Release|x86
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|Any CPU.ActiveCfg = Debug|x86 {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|Any CPU.ActiveCfg = Debug|x86
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|Any CPU.Build.0 = Debug|x86
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|Any CPU.Deploy.0 = Debug|x86
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.ActiveCfg = Debug|ARM {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.ActiveCfg = Debug|ARM
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.Build.0 = Debug|ARM {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.Build.0 = Debug|ARM
{02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.Deploy.0 = Debug|ARM {02680C26-CA1D-4D9D-A7E3-D66AF5BE6F2F}.Debug|ARM.Deploy.0 = Debug|ARM


Loading…
Cancel
Save