In this post we will explore the ASP.NET 5 Yeoman generator. What is Yeoman? Yeoman is a set of tools that facilitates building web applications. To use Yeoman, you need to install nodejs and yo package. So here is the installation steps for ASP.NET 5 Yeoman generator.
1. Install Node from nodejs official site
2. Once node installed, you can install Yo using npm. – npm install -g yo
3. After installing yo, you need to install ASP.NET 5 generator using npm install -g generator-aspnet command.
You can follow the steps to create a ASP.NET 5 project using Yeoman Generator
1. Once yeoman generator installed, you can execute the “yo aspnet” command to invoke ASP.NET 5 project creation wizard.
2. From the list of available project types, you can select the required one using arrow keys.(I selected the Web Application Basic [without Membership and Authorization] project type.)
3. After selecting the project type and press enter, you need to provide the project name, or simply enter, it will take the default one.
Once complete Yeoman Generator generates the project and you can execute the DNVM commands to restore the packages and host the application in the development server (WebListener). You need to install “dnu restore” first, then execute “dnx . web” command, it will restore the packages and host the application in http://localhost:5000. Here is the output. You can get the URL from config.ini file or project.json file.
You can use yo aspnet --help to get more details about the options and other configuration options.
Best ASP.NET 5 Hosting Recommendation
ASPHostPortal.com has been founded in 2008 and started as a group of IT professionals to introduce a new standard in the fast changing environment of web hosting. Their mission is to achieve your 100% satisfaction, which is guaranteed by their professional service and friendly support. With experience on various hosting platforms and operating systems, particularly Windows and ASP.NET, they bring a wealth of knowledge and the capability to handle ASP.NET 5 hosting needs. This experience also comes with the support and knowledge their customers have come to rely on. They ensure that customer's questions are resolved timely and effectively and from friendly and respectful customer support team.
They have robust hosting packages and super-affordable prices. They will provide you with complete ASP.NET 5 hosting solution. Their ASP.NET 5 Hosting packages are perfect for individuals and business requiring high uptime and performance.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.