GithubHelp home page GithubHelp logo

chris-house / aspnetcorespa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fullstackproltd/aspnetcorespa

0.0 3.0 0.0 1.28 MB

Asp.Net Core & Angular 2 SPA with Webpack starter 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:

Home Page: http://aspnetcorespa.azurewebsites.net/

License: MIT License

TypeScript 31.19% HTML 8.31% CSS 1.67% C# 46.46% PowerShell 2.64% JavaScript 9.73%

aspnetcorespa's Introduction

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

aspnetcorespa's People

Contributors

asadsahi avatar chris-house avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.