Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chsakell/aspnet5-angular2-typescript
Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript
https://github.com/chsakell/aspnet5-angular2-typescript
Last synced: 17 days ago
JSON representation
Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript
- Host: GitHub
- URL: https://github.com/chsakell/aspnet5-angular2-typescript
- Owner: chsakell
- License: mit
- Created: 2015-12-31T14:34:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T17:22:58.000Z (over 5 years ago)
- Last Synced: 2024-08-01T02:29:26.326Z (3 months ago)
- Language: C#
- Homepage: http://wp.me/p3mRWu-11L
- Size: 10.5 MB
- Stars: 348
- Watchers: 69
- Forks: 164
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASP.NET Core, Angular 4 & TypeScript
[![Build status](https://ci.appveyor.com/api/projects/status/github/chsakell/aspnet5-angular2-typescript?branch=master&svg=true)](https://ci.appveyor.com/project/chsakell/aspnet5-angular2-typescript/branch/master) [![License](https://img.shields.io/github/license/chsakell/aspnet5-angular2-typescript.svg)](https://github.com/chsakell/aspnet5-angular2-typescript/blob/master/licence)Blog post:Cross-platform Single Page Applications using ASP.NET Core, Angular 2 and Typescript
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)
- Install ASP.NET Core according to your development environment from here.
- Install NPM by installing Node.js.
- 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
- Download and install Visual Studio 2017 from here.
- Open Visual Studio 2017 and install any update related to ASP.NET Core (check the notifications).
- Download the source code and open the solution.
- By the time you open the solution, VS 2017 will try to restore Nuget, NPM and Bower packages.
- 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
- Open appsettings.json file and alter the database connection string to reflect your SQL Server environment.
- Open a console and navigate to src/PhotoGallery where the project.json exists. Run the following commands to enable migrations and create the database:
- dotnet ef migrations add initial
- dotnet ef database update
- Build your application and run it. You can use username: chsakell and password: photogallery to sign in or register a new user.
- Download and install Visual Studio Code from here.
- Install the csharp extension from here
- Download the source code and open the src/PhotoGallery folder in Visual Studio Code.
- 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
- Run the following command to restore Nuget Packages (dependencies)
- dotnet restore
- 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.
- Open appsettings.json file and alter the database connection string to reflect your SQL Server environment.
- 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:
- dotnet ef migrations add initial
- dotnet ef database update
- Host your application using Kestrel by typing the following command while at src/PhotoGallery:
- dotnet run
- Open a browser and navigate to http://localhost:5000/
- 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 2017, only for Windows users)
Installation instructions - Part 2 (Run application in Visual Studio Code, recommended for Linux/MAC users)
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
Follow chsakell's Blog
Facebook
Twitter
Microsoft Web Application Development
License
Code released under the MIT license.