This starter pack gives you a basic website template. See the demo at: http://angular2starter.azurewebsites.net/
- Angular2 routing (see routes.config.js)
- Angular2 Components
- Angular2 Service/Observable (see about.service.ts)
- Typescript (see App folder)
- ASP.NET Core API (see AboutController)
- Deep linking (see SpaMiddleware.cs)
- gulp/npm build (see gulpfile.js)
- Data persistence
- Authentication
- Testing frameworks for client and server side code.
You must have NODE.JS installed to run the client build. Open a command prompt from the root folder of the project and execute the following scripts in order:
- npm install
- jspm install
- dnvm install 1.0.0-rc1-update1
- dnvm use default -p
- gulp
- npm start
All client source files should be edited in the \App folder. Do not edit anything in the \wwwroot\app folder as this folder is cleaned and replaced with every build. The static files in \wwwroot (index.html, boot.js) may be edited. To watch for source file changes, run the following script:
- gulp watch
Any questions or comments feel free to submit here or drop me a line @rlangton76.