0.0.0 • Published 6 years ago

elevation-net-app v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

ElevationNetApp - Asp.Net Core Angular Project

This project was generated with:

Want to use Visual Studio 2017 like VS Code?? Check out Whack Whack Terminal

  • Remember to enable it by going to View -> Other Windows -> Terminal Server
  • Don't open a project, open a folder like VS Code

Starting A Fresh Project

First, download the template via dotnet new --install Microsoft.DotNet.Web.Spa.ProjectTemplates::2.0.0

Next create a folder to be the project directory and execute dotnet new angular -o projectName

For more info on usage check out how to use the angular project template

Navigate to the ClientApp folder to install electron npm install electron --save-dev

Also install electron-builder for distribution npm install electron-builder --save-dev

Electron

The following provides instructions for building and deploying via Electron

Building

To build the project, navigate to the clientapp folder and perform npm run electron

Publishing

To build the .exe for installing the project locally, navigate to the clientapp folder and perform npm run dist

  • This will create a deploy folder under the clientapp folder that will have the .exe

Angular Project (ClientApp Folder)

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.