Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

chsakell/aspnet5-angular2-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build statusLicense

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 fromhere.
  2. InstallNPM by installingNode.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 fromhere.
    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 thepackage.json andbower.json files exist. Run the following commands:
      • npm install
      • bower install
      • gulp build-spa
    6. Openappsettings.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 useusername:chsakell andpassword: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 fromhere.
    2. Install the csharp extension fromhere
    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 thepackage.json andbower.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 inappsettings.json and skip to the last 3 steps to run the app.
    7. Openappsettings.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 usingKestrel by typing the following command while at src/PhotoGallery:
      • dotnet run
    10. Open a browser and navigate to http://localhost:5000/
    11. You can useusername:chsakell andpassword:photogallery to sign in or register a new user.

    Microsoft Azure Deployment

    Learn how to deploy the PhotoGallery app on Microsoft Azurehere.

    Donations

    For being part of open source projects and documenting my work here and onchsakell'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

    FacebookTwitter
    Microsoft Web Application Development
    facebooktwitter-small

    License

    Code released under the MIT license.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp