MusicStore/README.md

42 строки
2.0 KiB
Markdown
Исходник Обычный вид История

2014-07-31 02:56:02 +04:00
# MusicStore application
2014-05-13 11:24:36 +04:00
This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 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.
2015-03-04 21:15:57 +03:00
### Deploy on Heroku
To deploy MusicStore on Heroku, click the button below:
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
###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).