|
7 years ago | |
---|---|---|
.. | ||
Client | 7 years ago | |
Properties | 7 years ago | |
Server | 7 years ago | |
Setup | 7 years ago | |
.angular-cli.json | 7 years ago | |
.gitignore | 7 years ago | |
.npmignore | 8 years ago | |
.sass-lint.yml | 8 years ago | |
AppSettings.cs | 7 years ago | |
Dockerfile | 7 years ago | |
Program.cs | 7 years ago | |
README.md | 7 years ago | |
Startup.cs | 7 years ago | |
WebSPA.csproj | 7 years ago | |
appsettings.json | 7 years ago | |
package-lock.json | 7 years ago | |
package.json | 7 years ago | |
tsconfig.json | 7 years ago | |
tslint.json | 8 years ago | |
typedoc.json | 8 years ago | |
web.config | 8 years ago |
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/
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:
Finally, you need to build the SPA app (TypeScript and Angular based client app) with NPM.
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.
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 with "docker-compose up" as explained in the main instructions at https://github.com/dotnet/eShopOnContainers/
Test the SPA app by running the following URL in a browser: http://TBD