This bootstrap used the ng new
command to build a standalone Angular application that builds directly into .NET Core.
NOTE: Be sure to run npm install
before trying any of these commands.
You can use the following to run your application during development.
ng serve
ornpm start
dotnet build
thendotnet run
If you use ng serve
or npm start
, you will get live refreshes on your browser with code changes. We recommend using either of these commands (both do the same thing) during development, then use dotnet build
and dotnet publish
commands when you are ready to release.
You will need to first install docker. Docker Community Edition
Once installed, you can use npm run docker
to build and run a docker container called angularapp
. Once this command completes, you can access the site by hitting http://localhost:4200
, unless you tweak the port mapping in the build commands.
If something doesn't work, or you think we need to change something, please let us know in the issues section!
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.