/csharp-dotnet-angular4

C# .NET Core Angular4 MSSQL Stack

Primary LanguageCSS

csharp-dotnet-angular4

Requirements

  1. SQL SERVER 2017
  2. .NET Core 2.0 (VS Code)
  3. Node.js version 6.11.* or higher

Running the application

  1. Download zip or git clone
  2. Import database/schema.sql
$ sqlcmd -S localhost -U SA -i database/schema.sql
  1. Install .NET Core
  2. Install Angular-CLI
$ npm install -g @angular/cli
  1. Install dependencies
$ npm install
  1. Build the Angular application
$ ng build
  1. .NET Core build then restore
$ dotnet build
$ dotnet restore
  1. Finally, run the server
$ dotnet run

Magic happens at http://localhost:5000/ <3

During Development

You should watch for the code changes in Angular 4 so you should use

$ ng serve --proxy-config proxy.config.json

Then open another terminal, you should also watch changes in c# code using

$ dotnet watch run

The angular app will be served at http://localhost:4200 While the c# server will be served at http://localhost:5000/

Angular-CLI

This project was generated with Angular CLI version 1.4.5.

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