Git Product home page Git Product logo

aspnet5-angular2-typescript's Introduction

Cross-platform Single Page Applications using ASP.NET 5, Angular 2 and Typescript

aspnet5-agnular2-03

Frameworks - Tools - Libraries

  • ASP.NET 5
  • ASP.NET MVC 6
  • Entity Framework 7
  • Automapper
  • Angular 2
  • Typescript
  • Bootstrap 3
  • Gulp
  • Bower

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

  1. Install ASP.NET 5 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 2015, only for Windows users)

    1. Download and install Visual Studio 2015 from here.
    2. Open Visual Studio 2015 and install any update related to ASP.NET 5 (check the notifications).
    3. Download the source code and open the solution.
    4. By the time you open the solution, VS 2015 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. dnx ef migrations add initial
      2. dnx 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. Download the source code and open the src/PhotoGallery folder in Visual Studio Code.
    3. 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
    4. Run the following command to restore Nuget Packages:
      • dnu restore
    5. Application uses SQL Server so in case you want to change this, you need to alter the corresponding parts (more info here).
    6. Open appsettings.json file and alter the database connection string to reflect your SQL Server environment.
    7. 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. dnx ef migrations add initial
      2. dnx ef database update
    8. Host your application using Kestrel by typing the following command while at src/PhotoGallery:
      • dnx web
    9. Open a browser and navigate to http://localhost:5000/
    10. You can use username: chsakell and password: photogallery to sign in or register a new user.

    Follow chsakell's Blog

    Facebook Twitter
    Microsoft Web Application Development
    facebook twitter-small

aspnet5-angular2-typescript's People

Contributors

chsakell avatar vmlf01 avatar

Watchers

James Cloos avatar Fernando Nogueira avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.