Skip to content

Asp.Net Core & Angular 2 SPA with Webpack 2 full featured application. Some concepts taken from ASP.NET Core & ASP.NET CORE SPA generators, angular2-webpack-starter with Angular 2 best practices and guidelines, all baked into one. Live demo:

License

Notifications You must be signed in to change notification settings

franbueno/AspNetCoreSpa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

128 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status Build status Join the chat at https://gitter.im/aspnetcorespa/Lobby Dependency Status devDependencies Status MIT license

Features

Pre-requisites

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

Make sure you have Node version >= 6.0 and NPM >= 3

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 protractor rimraf -g
5. npm install
6. Create webpack vendor manifest file for fast webpack rebuils
    For Development: npm run build:dev
    For Production: npm run build:prod 
8. Run the app:
    1) One way
    set ASPNETCORE_ENVIRONMENT=Development
    `dotnet run` (for single run) OR `dotnet watch run` (in watch mode)
    2) Another way:
    Just F5 key if you are using VS code editor or Visual Studio IDE
9. Browse using http://localhost:5000 or http://localhost:5001 

Other commands

run Angular 2 tests

npm run test
# this will also create coverage remaped to typescript files in coverage folder after test run completes

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

About

Asp.Net Core & Angular 2 SPA with Webpack 2 full featured application. Some concepts taken from ASP.NET Core & ASP.NET CORE SPA generators, angular2-webpack-starter with Angular 2 best practices and guidelines, all baked into one. Live demo:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 50.2%
  • TypeScript 28.8%
  • JavaScript 9.2%
  • HTML 8.2%
  • PowerShell 2.3%
  • CSS 1.3%