You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
eiximenis fcff8e45aa Fixes #630 6 years ago
..
Client Created specific service for signalr hub 6 years ago
Properties renaming of PurchaseBff to Aggregator 7 years ago
Server data and UI customization enhancements 7 years ago
Setup replace main banner in SPA app 7 years ago
.angular-cli.json Added signalr client service to SPA app 6 years ago
.gitignore update to angular-cli and angular 4 7 years ago
.npmignore Renaming WebSpa 8 years ago
.sass-lint.yml Renaming WebSpa 8 years ago
AppSettings.cs Created specific service for signalr hub 6 years ago
Dockerfile Fixes #630 6 years ago
Program.cs Added AppInsights service 7 years ago
README.md eBook renamed 7 years ago
Startup.cs Add a endpoint returning only a 200 to be used as a liveness probe for k8s 7 years ago
WebSPA.csproj Fixes #630 6 years ago
appsettings.json Updating SPA for working with PurchaseBFF. 7 years ago
package-lock.json Updates to make it work with Docker 6 years ago
package.json Fixed AOT compile issue with signalr pkg version 6 years ago
tsconfig.json update to angular-cli and angular 4 7 years ago
tslint.json Renaming WebSpa 8 years ago
typedoc.json Renaming WebSpa 8 years ago
web.config Renaming WebSpa 8 years ago

README.md

eShop Web SPA (Single Page Application)

Requirements and set up

Install NPM

The SPA application is using a newer version of NPM than the one provided by Visual Studio 2015 (npm 2.7.4 currently), so you need to install the latest stable version of NPM.

NPM is bundled with NODE.JS. Installing NPM and NODE is pretty straightforward by using the installer package available at https://nodejs.org/en/

You can install the version "Recommended For Most Users" of Node which at the moment of this writing was v6.9.3 LTS and comes with a newer version of NPM. You can see your initial NPM version and the installed NPM version with the command npm -v, as shown below.

Set NPM path into Visual Studio

NPM will be usually installed under this path: C:\Program Files (x86)\nodejs. You need to update that path in Visual Studio 2015 under the "External Web Tools" location paths, as shown below:

Build the SPA app with NPM

Finally, you need to build the SPA app (TypeScript and Angular based client app) with NPM.

  • Open a command-prompt window and move to the root of the SPA application (src\Web\WebSPA\eShopOnContainers.WebSPA)
  • Run the command npm run build:prod as shown below:

If you get an error like "Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x", then run the command npm rebuild node-sass as in the following screenshot: Then, run again the npm run build:prod command that should finish with no errors.

Build/create the Docker images

Create the Docker images with the build-images.ps1 PowerShell script in Windows (or the build-images.sh bash script in a Mac) as explained in the main instructions at https://github.com/dotnet/eShopOnContainers/

Deploy/run the Docker containers

Deploy/run the Docker containers with "docker-compose up" as explained in the main instructions at https://github.com/dotnet/eShopOnContainers/

Test the SPA web application

Test the SPA app by running the following URL in a browser: http://TBD