It executes a set of scenarios: 1. Launches the app in Helios and navigates to the home page and verifies 2. Make a request to a protected resource and verifies that request is redirected to the login page 3. Registers a user with a dynamically generated user name and verifies the user is created and logged in by verifying the cookies and display name in the home page. 4. Go back to the StoreManager controller which requires a specific permission and verifies that still we are being redirected to Login page. 5. Logoff of the current user session and verify the user is logged off and cookie cleared. 6. Login this time with Administrator user who has permission to manage store and verify successfully logged in 7. Verify that this time the user can access the StoreManager controller 8. Create an album and verify that album is successfully created. 9. Logout of the app and verify. |
||
|---|---|---|
| src | ||
| test/E2ETests | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| Clean.cmd | ||
| LICENSE.txt | ||
| MusicStore.sln | ||
| MusicStore.sln.DotSettings | ||
| NuGet.Config | ||
| README.md | ||
| build.cmd | ||
| makefile.shade | ||
README.md
Music store application
This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.
###Getting Started
The first thing we need to do is setup the tools required to build and run an application.
- If you already have
kvminstalled on the machine ignore the steps below. - Clone [Home] (https://github.com/aspnet/Home) repository
- On the command line, cd to Home repository and execute
kvm setup - This command will download the latest version of the SDK and put it on your path so that you can run the rest of the commands in the readme. If you want to know more about what this is doing then you can read the KVM page of the wiki.
- On the command line execute
kvm install 0.1-alpha-build-0421 - This command will install Desktop flavor(x86) of KRE build 0421 in your user profile
- Clone MusicStore repository, if you have not already
Run the application:
- Open a command prompt and cd
\src\<AppFolder>\ - Run
kpm restoreto restore all the necessary packages and generate project files Note:kpm restorecurrently works only on Desktop flavor. If you intend to use Core CLR, you should get Desktop flavor, executekpm restoreand then switch to Core CLR - [Helios]:
4.
Helios.cmdto launch the app on IISExpress (Application started at URL http://localhost:5001/). - [SelfHost]:
5. Run
k web(Application started at URL http://localhost:5002/) - [CustomHost]:
6. Run
k run(This hosts the app in a console application - Application started at URL http://localhost:5003/)
Switching between Desktop CLR and CoreCLR:
By default the app runs on desktop CLR. To switch to run the app on CoreCLR follow the steps below
- On the command line, execute
kvm install 0.1-alpha-build-0421 -svrc50 - This command will install core clr flavor of KRE build 0421 and set runtime to core clr 0421 build.
- If you want to run on IIS/IISExpress against core clr, open k.ini and update KRE_FLAVOR to CORECLR and follow steps for running the application from 'Run the application' section
- If you want to run on SelfHost against core clr, follow steps for running the application from 'Run the application' section
Adding a new package:
- Edit the project.json to include the package you want to install.
- Do a
kpm restore- This will restore the package in the project.
Work against the latest build:
- Run
Clean.cmd- This will clear all the packages and any temporary files generated - Continue the topic "Run the application"
Note:
- Application is started on different ports on different hosts. To change the port or URL modify
Helios.cmdor project.json commands section in case of self-host and customhost.