Skip to content

Latest commit

 

History

History
90 lines (78 loc) · 4.12 KB

README.md

File metadata and controls

90 lines (78 loc) · 4.12 KB

Build status Join the chat at https://gitter.im/mgechev/angular2-seed Dependency Status devDependencies Status MIT license

Features

Pre-requisites

  1. .Net core sdk
  2. Either VSCode with C# extension OR Visual studio 2015 update 3 with .Net Core tooling
  3. Nodejs

Installation

1. Clone the repo
    git clone https://github.com/asadsahi/AspNetCoreSpa
2. Change directory to our repo
    cd AspNetCoreSpa
3. dotnet restore
4. Install global dependencies
    npm install webpack protractor typings rimraf -g
5. npm install
6. typings install
7. Create webpack vendor manifest file for fast webpack rebuils
    webpack --config config/webpack.config.vendor.js
8. Set appropriate environment 
    set ASPNETCORE_ENVIRONMENT=Development
9. Run the app 
    dotnet run (for single run) OR dotnet watch (in watch mode)
10. Browse using http://localhost:5000 or http://localhost:5001 

Other commands

run Angular 2 tests

npm run test

watch and run Angular 2 tests

npm run watch:test

Typescript documentation

npm run docs
# this will create documentation in doc folder at the root location (open index.html file) 

run end-to-end tests

# make sure you have your server running in another terminal (i.e run "dotnet run" command)
npm run e2e

run webdriver (for end-to-end)

npm run webdriver:update
npm run webdriver:start

run Protractor's elementExplorer (for end-to-end)

npm run webdriver:start
# in another terminal
npm run e2e:live