• Stars
    star
    348
  • Rank 117,284 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript

ASP.NET Core, Angular 4 & TypeScript

Build status License

Blog post:Cross-platform Single Page Applications using ASP.NET Core, Angular 2 and Typescript

aspnet5-agnular2-03

Frameworks - Tools - Libraries

  • ASP.NET Core
  • Entity Framework Core
  • Automapper
  • Angular 4
  • Typescript
  • Bootstrap 3
  • Gulp
  • Bower

Installation instructions - Part 1 (Applied for Windows/Linux/MAC)

  1. Install ASP.NET Core according to your development environment from here.
  2. Install NPM by installing Node.js.
  3. Install Bower, Gulp, Typescript and Typescript Definition Manager globally by typing the following commands on the console/terminal:
    • npm install -g bower
    • npm install -g gulp
    • npm install -g typescript
    • npm install -g tsd
  4. Installation instructions - Part 2 (Run application in Visual Studio 2017, only for Windows users)

    1. Download and install Visual Studio 2017 from here.
    2. Open Visual Studio 2017 and install any update related to ASP.NET Core (check the notifications).
    3. Download the source code and open the solution.
    4. By the time you open the solution, VS 2017 will try to restore Nuget, NPM and Bower packages.
    5. In case it fails to restore NPM and Bower packages, open a console and navigate at the src/PhotoGallery path where the package.json and bower.json files exist. Run the following commands:
      • npm install
      • bower install
      • gulp build-spa
    6. Open appsettings.json file and alter the database connection string to reflect your SQL Server environment.
    7. Open a console and navigate to src/PhotoGallery where the project.json exists. Run the following commands to enable migrations and create the database:
      1. dotnet ef migrations add initial
      2. dotnet ef database update
    8. Build your application and run it. You can use username: chsakell and password: photogallery to sign in or register a new user.

    Installation instructions - Part 2 (Run application in Visual Studio Code, recommended for Linux/MAC users)

    1. Download and install Visual Studio Code from here.
    2. Install the csharp extension from here
    3. Download the source code and open the src/PhotoGallery folder in Visual Studio Code.
    4. Open a console/terminal and navigate at the src/PhotoGallery path where the package.json and bower.json files exist. Run the following commands:
      • npm install
      • bower install
      • gulp build-spa
    5. Run the following command to restore Nuget Packages (dependencies)
      • dotnet restore
    6. Application uses SQL Server so in case you want to run the app in Linux or MAC simply set "InMemoryProvider": true in appsettings.json and skip to the last 3 steps to run the app.
    7. Open appsettings.json file and alter the database connection string to reflect your SQL Server environment.
    8. Open a console/terminal and navigate to src/PhotoGallery where the project.json exists. Run the following commands to enable migrations and create the database:
      1. dotnet ef migrations add initial
      2. dotnet ef database update
    9. Host your application using Kestrel by typing the following command while at src/PhotoGallery:
      • dotnet run
    10. Open a browser and navigate to http://localhost:5000/
    11. You can use username: chsakell and password: photogallery to sign in or register a new user.

    Microsoft Azure Deployment

    Learn how to deploy the PhotoGallery app on Microsoft Azure here.

    Donations

    For being part of open source projects and documenting my work here and on chsakell's blog I really do not charge anything. I try to avoid any type of ads also.

    If you think that any information you obtained here is worth of some money and are willing to pay for it, feel free to send any amount through paypal.

    Paypal
    Buy me a beer

    Follow chsakell's Blog

    Facebook Twitter
    Microsoft Web Application Development
    facebook twitter-small

    License

    Code released under the MIT license.

More Repositories

1

mvcarchitecture

ASP.NET MVC Solution Architecture – Best Practices
C#
491
star
2

aspnet-core-identity

ASP.NET Core Identity Series
JavaScript
485
star
3

spa-webapi-angularjs

Building Single Page Applications using Web API and AngularJS
C#
254
star
4

dotnetcore-entityframework-api

Building REST APIs using ASP.NET Core and Entity Framework Core
C#
222
star
5

angular2-features

Angular CRUD ops, Modals, Animations, Pagination, DateTimePicker, Directives and much more..
TypeScript
175
star
6

aspnet-core-signalr-angular

Real-time applications using ASP.NET Core, SignalR & Angular
C#
143
star
7

ionic2-angular2-firebase

Building hybrid mobile apps using Ionic 2 and Firebase
TypeScript
93
star
8

webapiunittesting

ASP.NET Web API Unit Testing
C#
35
star
9

mongodb-csharp

MongoDB for C# developers
C#
30
star
10

wcfdependencyinjection

Dependency injection in WCF
C#
24
star
11

planet-scale-azure

Globally-distributed applications with Microsoft Azure - Free e-book
C#
23
star
12

multi-client-api

Building multi-client APIs in ASP.NET
C#
19
star
13

rxjs-in-angular

ReactiveX operators in Angular
TypeScript
13
star
14

aspnet-core-smartresult

ASP.NET Core MVC Filter that transforms result types based on device type
C#
12
star
15

webapi-fileupload

Web API File Uploading (Desktop and Web client)
C#
11
star
16

Swashbuckle.AspNetCore.SwaggerGen.ConventionalRouting

Swagger with Conventional Routing support
C#
10
star
17

gadgetstore

AngularJS feat. Web API
C#
9
star
18

odatawebapi

ASP.NET Web API feat. OData
JavaScript
9
star
19

browsedotnet

BrowseDotNET: Manage your .NET Solutions and code snippets
C#
8
star
20

typescript-ng-bower-gulp

TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015
C#
8
star
21

online-store

C#
7
star
22

documentdb-dotnet-core

JavaScript
7
star
23

azure-functions-proxies

Azure Functions Proxies in Action
C#
7
star
24

azure-github-ci-cd

Continuous Integration & Delivery with Microsoft Azure & GitHub – Best Practices
C#
6
star
25

serverless-azure-functions

Building serverless apps with Azure Functions
HTML
5
star
26

angular2-tour-of-heroes

The TOUR OF HEROES tutorial's code completed
TypeScript
5
star
27

wcfauthheader

Secure WCF Services with custom encrypted tokens
C#
4
star
28

webapiangularjssecurity

AngularJS feat. Web API – Security
C#
4
star
29

webapicustomvalidation

Web API powerful Custom Model Validation with FluentValidation
C#
3
star
30

mvcsessionperfomance

ASP.NET MVC Session state Performance Issue
C#
3
star
31

sendingemailsapp

Sending Emails in ASP.NET: Do it right
C#
3
star
32

statemanagement

State Management in ASP.NET (ViewState, SessionState & ApplicationState)
C#
3
star
33

asynchronousprogramming

Asynchronous programming using Tasks
C#
2
star
34

mapcrudstoredprocedures

Map CRUD Stored Procedures to Entities with Entity Framework
C#
2
star
35

adonetbatchqueries

Batch queries, Multiple Result Sets and Parameterized Queries in ADO.NET
C#
2
star
36

ssr-spa-navigation

Instant page rendering and seamless navigation for SPAs
C#
2
star
37

aspnetcaching

Caching SQL Server data in ASP.NET
C#
2
star
38

weather-app

JavaScript
2
star
39

dotnetcoreangular-to-azure

Azure App Service CI/CD using AppVeyor
TypeScript
2
star
40

usercontrol

ASP.NET Web Form User Controls – How to use them
C#
1
star
41

sqlcommands

SqlCommands: What to choose between SqlDataAdapter, ExecuteScalar and ExecuteNonQuery
C#
1
star
42

wcfproxies

WCF Proxies - From beginner to expert
C#
1
star
43

rxjs-samples

RxJS samples
TypeScript
1
star
44

webmail-server

C#
1
star
45

azure-service-fabric-getting-started

Azure Service Fabric - Getting Started
C#
1
star
46

maui-trackizer

.NET MAUI UI implementation for a subscription tracking app
C#
1
star
47

extnetdataview

Ajax enabled lists using the Ext.NET component framework
C#
1
star
48

aspneturlrouting

URL Rooting in ASP.NET (Web Forms)
C#
1
star
49

livesearchwithwebapi

Related entities and live search with Web API and Entity Framework
C#
1
star
50

wcf-dot-net-core

WCF Proxies in .NET Core
C#
1
star
51

webapiroutingconstraints

Web API Custom Routing Constraints
C#
1
star