MusicStore/README.md

41 строка
2.1 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2014-07-31 02:56:02 +04:00
# MusicStore application
2014-05-13 11:24:36 +04:00
AppVeyor: [![AppVeyor](https://ci.appveyor.com/api/projects/status/ja8a7j6jscj7k3xa/branch/dev?svg=true)](https://ci.appveyor.com/project/aspnetci/MusicStore/branch/dev)
Travis: [![Travis](https://travis-ci.org/aspnet/MusicStore.svg?branch=dev)](https://travis-ci.org/aspnet/MusicStore)
2016-03-15 07:27:31 +03:00
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo.
2014-05-13 11:24:36 +04:00
2014-12-23 06:04:55 +03:00
## Run the application on Helios:
2014-11-06 22:39:55 +03:00
* If you have Visual Studio 2015
2014-12-23 06:04:55 +03:00
1. Open MusicStore.sln in Visual Studio 2015 and run the individual applications on `IIS Express`.
2014-11-06 22:39:55 +03:00
* If you don't have Visual Studio 2015
1. Open a command prompt and execute `cd \src\MusicStore\`.
2015-03-24 10:36:00 +03:00
2. Execute `dnu restore`.
2014-12-23 06:04:55 +03:00
3. Execute `Helios.cmd` to launch the app on IISExpress from command line (Application started at URL **http://localhost:5001/**).
**NOTE:** App and tests require Visual Studio 2015 LocalDB on the machine to run.
2014-07-31 02:56:02 +04:00
2014-12-23 06:04:55 +03:00
## Run on WebListener/Kestrel:
* Open a command prompt and cd `\src\MusicStore\`.
2014-07-31 02:56:02 +04:00
* **[WebListener]:**
2015-03-25 08:24:37 +03:00
4. Run `dnx . web` (Application started at URL **http://localhost:5002/**).
2014-07-31 02:56:02 +04:00
* **[Kestrel]:**
2015-03-25 08:24:37 +03:00
5. Run `dnx . kestrel` (Application started at URL **http://localhost:5004/**).
2014-07-31 02:56:02 +04:00
* **[CustomHost]:**
2015-03-25 08:24:37 +03:00
6. Run `dnx . run` (This hosts the app in a console application - Application started at URL **http://localhost:5003/**).
2014-12-23 06:04:55 +03:00
## To run the sample on Mac/Mono:
* Follow the instructions at the [Home](https://github.com/aspnet/Home) repository to install Mono and DNVM on Mac OS X.
* Open a command prompt and execute `cd \src\MusicStore\`.
2015-03-24 10:36:00 +03:00
* Execute `dnu restore`.
2015-03-25 08:24:37 +03:00
* Try `dnx . kestrel` to run the application.
**NOTE:** Since on Mono SQL client is not available the sample uses an InMemoryStore to run the application. So the changes that you make will not be persisted.
###NTLM authentication
More information at [src/MusicStore/StartupNtlmAuthentication.cs](src/MusicStore/StartupNtlmAuthentication.cs).
###OpenIdConnect authentication
More information at [src/MusicStore/StartupOpenIdConnect.cs](src/MusicStore/StartupOpenIdConnect.cs).