The curiosity of ASP. NET 5 was sparked by Microsoft's release of ASP. NET 5 Beta2 (see ASP. 5 BETA2 release) yesterday.
This afternoon on Mac OS X, I experienced an ASP. NET 5 Beta2, and with Yeoman generators for ASP. 5, you can not write 1 lines of code, even Project.json do not write. There is a feeling of a Mac under Visual Studio.
Here's a look at the actual procedure:
1. Install the Package Manager for OS X: Homebrew
2. Add the ASP. NET 5 code base on GitHub to brew: Brew tap aspnet/k
3. KVM Install ASP. 5: Brew Install KVM (mono is installed at this point)
4. Add the KVM command to Terminal: source kvm.sh (otherwise "-bash:kvm:command not Found" error when running the KVM command)
6. Install the node. JS Environment: node. JS (in order to install Yeoman generators for ASP. 5)
7. Install yeoman generators for ASP. 5: sudo npm install-g yo generator-aspnet
8. Run yeoman generators for ASP. NET 5 to create an ASP. NET 5 project:
A) Run command yo ASPNET
b) Select Web Application
c) in ? What ' s the name of your ASP. Application? (WebApplication) When you enter the project name, such as HelloAspNet5
d) Then yeoman generators will automatically create the files required for the ASP. NET 5 project:
e) The directory structure in the HelloAspNet5 folder is as follows:
9. Install the package required to run the ASP. NET 5 project: KPM Restore
10. Run ASP. NET 5 project: K Kestrel
11. Browser access to the site (URL in the Project.json file kestrel the Server.urls section):
Resources
Yeoman generators for ASP. 5
The simplest way to experience ASP. NET 5 on your Mac without writing 1 lines of code