-
-
-
- Learn how to build ASP.NET apps that can run anywhere.
-
- Learn More
-
-
-
+@foreach (var catalogItem in Model)
+{
+
+
+
@catalogItem.Name
-
-
-
-
- There are powerful new features in Visual Studio for building modern web apps.
-
- Learn More
-
-
-
+
+ @catalogItem.Description
-
-
-
-
- Bring in libraries from NuGet, Bower, and npm, and automate tasks using Grunt or Gulp.
-
- Learn More
-
-
-
-
-
-
-
-
- Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
-
- Learn More
-
-
-
-
-
-
-
- Previous
-
-
-
- Next
-
-
-
-
-
-
Application uses
-
- - Sample pages using ASP.NET Core MVC
- - Bower for managing client-side libraries
- - Theming using Bootstrap
-
-
-
-
-
-
+}
\ No newline at end of file
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/Views/_ViewImports.cshtml b/src/Web/Microsoft.eShopOnContainers.WebMVC/Views/_ViewImports.cshtml
index 476e0dfc5..ead118e2c 100644
--- a/src/Web/Microsoft.eShopOnContainers.WebMVC/Views/_ViewImports.cshtml
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/Views/_ViewImports.cshtml
@@ -3,4 +3,6 @@
@using Microsoft.eShopOnContainers.WebMVC.Models.AccountViewModels
@using Microsoft.eShopOnContainers.WebMVC.Models.ManageViewModels
@using Microsoft.AspNetCore.Identity
+@using Microsoft.eShopOnContainers.WebMVC.Models
+
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/appsettings.json b/src/Web/Microsoft.eShopOnContainers.WebMVC/appsettings.json
index 5331e545a..d0108f51e 100644
--- a/src/Web/Microsoft.eShopOnContainers.WebMVC/appsettings.json
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/appsettings.json
@@ -2,6 +2,7 @@
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Microsoft.eShopOnContainers.WebMVC-946ae052-8305-4a99-965b-ec8636ddbae3;Trusted_Connection=True;MultipleActiveResultSets=true"
},
+ "CatalogUrl": "http://localhost:2418/",
"Logging": {
"IncludeScopes": false,
"LogLevel": {
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.debug.yml b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.debug.yml
new file mode 100644
index 000000000..5fe72ffab
--- /dev/null
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.debug.yml
@@ -0,0 +1,17 @@
+version: '2'
+
+services:
+ microsoft.eshoponcontainers.webmvc:
+ build:
+ args:
+ source: obj/Docker/empty/
+ labels:
+ - "com.microsoft.visualstudio.targetoperatingsystem=linux"
+ environment:
+ - ASPNETCORE_ENVIRONMENT=Development
+ - DOTNET_USE_POLLING_FILE_WATCHER=1
+ volumes:
+ - .:/app
+ - ~/.nuget/packages:/root/.nuget/packages:ro
+ - ~/clrdbg:/clrdbg:ro
+ entrypoint: tail -f /dev/null
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.release.yml b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.release.yml
new file mode 100644
index 000000000..3e58c13eb
--- /dev/null
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.dev.release.yml
@@ -0,0 +1,9 @@
+version: '2'
+
+services:
+ microsoft.eshoponcontainers.webmvc:
+ labels:
+ - "com.microsoft.visualstudio.targetoperatingsystem=linux"
+ volumes:
+ - ~/clrdbg:/clrdbg:ro
+ entrypoint: tail -f /dev/null
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.yml b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.yml
new file mode 100644
index 000000000..2cf1a7757
--- /dev/null
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/docker-compose.yml
@@ -0,0 +1,10 @@
+version: '2'
+
+services:
+ microsoft.eshoponcontainers.webmvc:
+ image: user/microsoft.eshoponcontainers.webmvc${TAG}
+ build:
+ context: .
+ dockerfile: Dockerfile
+ ports:
+ - "80"
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/project.json b/src/Web/Microsoft.eShopOnContainers.WebMVC/project.json
index 726c2fef3..ad7b4b88a 100644
--- a/src/Web/Microsoft.eShopOnContainers.WebMVC/project.json
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/project.json
@@ -1,6 +1,5 @@
{
"userSecretsId": "aspnet-Microsoft.eShopOnContainers.WebMVC-946ae052-8305-4a99-965b-ec8636ddbae3",
-
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0",
@@ -40,7 +39,6 @@
"type": "build"
}
},
-
"tools": {
"BundlerMinifier.Core": "2.0.238",
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
@@ -54,7 +52,6 @@
]
}
},
-
"frameworks": {
"netcoreapp1.0": {
"imports": [
@@ -63,30 +60,33 @@
]
}
},
-
"buildOptions": {
"emitEntryPoint": true,
- "preserveCompilationContext": true
+ "preserveCompilationContext": true,
+ "debugType": "portable"
},
-
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
-
"publishOptions": {
"include": [
"wwwroot",
"Views",
"Areas/**/Views",
"appsettings.json",
- "web.config"
+ "web.config",
+ "Dockerfile"
]
},
-
"scripts": {
- "prepublish": [ "bower install", "dotnet bundle" ],
- "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
+ "prepublish": [
+ "bower install",
+ "dotnet bundle"
+ ],
+ "postpublish": [
+ //"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"
+ ]
}
-}
+}
\ No newline at end of file
diff --git a/src/Web/Microsoft.eShopOnContainers.WebMVC/wwwroot/js/site.min.js b/src/Web/Microsoft.eShopOnContainers.WebMVC/wwwroot/js/site.min.js
index e69de29bb..e5539c1df 100644
--- a/src/Web/Microsoft.eShopOnContainers.WebMVC/wwwroot/js/site.min.js
+++ b/src/Web/Microsoft.eShopOnContainers.WebMVC/wwwroot/js/site.min.js
@@ -0,0 +1 @@
+// Write your Javascript code.
\ No newline at end of file