- Notifications
You must be signed in to change notification settings - Fork160
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
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Blog post:Cross-platform Single Page Applications using ASP.NET Core, Angular 2 and Typescript
- ASP.NET Core
- Entity Framework Core
- Automapper
- Angular 4
- Typescript
- Bootstrap 3
- Gulp
- Bower
- Install ASP.NET Core according to your development environment fromhere.
- InstallNPM by installingNode.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 fromhere.
- 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 thepackage.json andbower.json files exist. Run the following commands:
- npm install
- bower install
- gulp build-spa
- Openappsettings.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 useusername:chsakell andpassword:photogallery to sign in or register a new user.
- Download and install Visual Studio Code fromhere.
- Install the csharp extension fromhere
- 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 thepackage.json andbower.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 inappsettings.json and skip to the last 3 steps to run the app.
- Openappsettings.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 usingKestrel by typing the following command while at src/PhotoGallery:
- dotnet run
- Open a browser and navigate to http://localhost:5000/
- 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)
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 |
---|
Microsoft Web Application Development | |||
About
Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.