• Complain

Kurniawan - Getting Started with ASP.NET 5 for OS X, Linux, and Windows

Here you can read online Kurniawan - Getting Started with ASP.NET 5 for OS X, Linux, and Windows full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2015, publisher: PE Press, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Kurniawan Getting Started with ASP.NET 5 for OS X, Linux, and Windows
  • Book:
    Getting Started with ASP.NET 5 for OS X, Linux, and Windows
  • Author:
  • Publisher:
    PE Press
  • Genre:
  • Year:
    2015
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Getting Started with ASP.NET 5 for OS X, Linux, and Windows: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Getting Started with ASP.NET 5 for OS X, Linux, and Windows" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Kurniawan: author's other books


Who wrote Getting Started with ASP.NET 5 for OS X, Linux, and Windows? Find out the surname, the name of the author of the book and a list of all author's works by series.

Getting Started with ASP.NET 5 for OS X, Linux, and Windows — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Getting Started with ASP.NET 5 for OS X, Linux, and Windows" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Copyright

Getting Started with ASP.NET 5 for OS X, Linux, and Windows

Agus Kurniawan

1st Edition, 2015

Copyright 2015 Agus Kurniawan

Table of Contents
Preface

This book was written to help anyone want to get started with ASP.NET 5 core. It describes ASP.NET 5 core deploying and the basic elements of ASP.NET 5 core and shows how to work with several ASP.NET 5 core features.

Agus Kurniawan

Berlin & Depok, June 2015

1. Preparing Development Environment
1.1 ASP.NET 5

ASP.NET 5 is a lean and composable framework for building web and cloud applications. ASP.NET 5 is fully open source and available on GitHub, http://github.com/aspnet/home . ASP.NET 5 is currently in preview when this book is written.

This book will focus on how to develop ASP.NET 5 on OS X, Linux and Windows platforms. We use ASP.NET 5 core beta4.

1.2 System Requirements

For testing, I use Debian/Ubuntu Linux, OS X Yosemite and Windows 8.1. You can use any Linux distribution which inheritanced from Debian based.

1.3 Development Tools

In general, we can use any editor to write ASP.NET 5program. I recommend to use Sublime Text, http://www.sublimetext.com/ , to write ASP.NET 5 codes. Microsoft also released Visual Studio Code and you can download it on https://code.visualstudio.com/ .

2 Deploying ASP.NET 5 on OS X

In this chapter we will learn how to deploy ASP.NET 5 on OS X.

2.1 Getting Started

In this section we start to deploy ASP.NET 5 on OS X. In this book I use ASP.NET 5 preview, beta4. Please follow installation steps on next section.

2.2 Deploying ASP.NET 5

To install ASP.NET on OS X, you can use brew, http://brew.sh/ . Type these commands to install ASP.NET 5.

$ brew tap aspnet/dnx $ brew update $ brew install dnvm

If success you can see a task which you should do We must add dnvm on our - photo 1

If success, you can see a task which you should do. We must add dnvm on our profile.

Type this command nano bashprofile Then you get nano editor You can - photo 2

Type this command.

$ nano ~/.bash_profile

Then, you get nano editor. You can use another text editor. Add this script on ~/.bash_profile.

source dnvm.sh

If done save this file After that close your Terminal and then open again so - photo 3

If done, save this file. After that, close your Terminal and then open again so Terminal will load profile script.

The next step is to upgrade. Type this command.

$ dnvm upgrade

Now you already installed dnvm It will be used to manage ASPNET 5 runtime on - photo 4

Now you already installed dnvm. It will be used to manage ASP.NET 5 runtime on OS X. You can verify dnvm by typing this command.

$ dnvm help

So you see a list of dnvm parameter.

You can also see a list of your DNX runtime by typing this command dnvm - photo 5

You can also see a list of your DNX runtime by typing this command.

$ dnvm list

23 Testing To test our ASPNET 5 we use code samples from - photo 6

2.3 Testing

To test our ASP.NET 5, we use code samples from https://github.com/aspnet/Home . We clone this code samples and then restore all required libraries using dnu command.

Type these commands.

$ git clone https://github.com/aspnet/Home $ cd Home $ dnu restore

If you don't git on your OS X, you can install it via brew.

$ brew install git

Now you are ready to run code samples 231 ASPNET Console To run ASPNET - photo 7

Now you are ready to run code samples.

2.3.1 ASP.NET Console

To run ASP.NET Console, we can use dnx. Firstly, navigate to ConsoleApp project.

Type these commands.

$ cd samples/latest/ConsoleApp/ $ dnx . run .

If success, you can see a message "Hello World" on Terminal.

232 ASPNET 5 To run ASPNET 5 app we can use dnx with kestrel Firstly - photo 8

2.3.2 ASP.NET 5

To run ASP.NET 5 app, we can use dnx with kestrel. Firstly, navigate to HelloWeb project.

Type these commands.

$ cd samples/latest/HelloWeb/ $ dnx . kestrel

Now open a browser and then navigate to http://localhost:5004/ . You should see ASP.NET 5 app.

To stop kestrel you can type exit exit 233 ASPNET MVC To run - photo 9

To stop kestrel, you can type exit.

exit

233 ASPNET MVC To run ASPNET MVC we can use dnx Firstly navigate to - photo 10

2.3.3 ASP.NET MVC

To run ASP.NET MVC, we can use dnx. Firstly, navigate to HelloMvc project.

Type these commands.

$ cd samples/latest/HelloMvc/ $ dnx . kestrel

Now open a browser and then navigate to http://localhost:5004/ . You should see ASP.NET MVC app.

To stop kestrel you can type exit 24 Development Tools The next step - photo 11

To stop kestrel, you can type exit.

24 Development Tools The next step is to build program To write a program - photo 12

2.4 Development Tools

The next step is to build program. To write a program, you can use any text editor. Microsoft also provides Visual Studio Code. It runs on Windows, Linux and Mac. You can download it on https://code.visualstudio.com/ .

3 Deploying ASPNET 5 on Linux In this chapter we will learn how to deploy - photo 13

3 Deploying ASP.NET 5 on Linux

In this chapter we will learn how to deploy ASP.NET 5 on Linux.

3.1 Getting Started

In this section we start to deploy ASP.NET 5 on Linux. In this book I use ASP.NET 5 preview, beta4. For illustration, I use Ubuntu 15.04 as Linux distro. Please follow installation steps on next section.

3.2 Deploying ASP.NET 5

This installation process is based on this documentation, https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md . In this section, we install ASP.NET 5 on Linux manually (without docker). Firstly, you update your distro.

$ sudo apt-get update

In general, to install ASP.NET 5 on Ubuntu, you can do the following steps:

  • Installing Mono
  • Installing libuv
  • Installing DNVM
  • Installing git (optional)
3.2.1 Installing Mono

Mono is .NET runtime for Linux. You need the latest version of Mono runtime. To install it, you can type these commands.

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF $ echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list $ sudo apt-get update $ sudo apt-get install mono-complete
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Getting Started with ASP.NET 5 for OS X, Linux, and Windows»

Look at similar books to Getting Started with ASP.NET 5 for OS X, Linux, and Windows. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Getting Started with ASP.NET 5 for OS X, Linux, and Windows»

Discussion, reviews of the book Getting Started with ASP.NET 5 for OS X, Linux, and Windows and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.