GithubHelp home page GithubHelp logo

darioajr / home Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/aspnetcore

0.0 2.0 0.0 902 KB

The Home repository is the starting point for people to learn about ASP.NET 5.

License: Other

Batchfile 0.39% PowerShell 61.33% Shell 38.28%

home's Introduction

Getting Started with ASP.NET 5 and DNX

This guide is designed to get you started building applications with the latest development versions ASP.NET 5 and DNX. This means nightly builds and potentially broken or unstable packages.

If you want a more stable, released, experience then you should go to http://www.asp.net/vnext.

What you need

The key part of working with development feeds is getting your environment set up so that you can acquire and switch to new builds of the DNX. Once you have that then it is just a matter of pulling the latest packages from the development MyGet feed.

In order to be able to get new builds of the DNX, and switch between them, you need to get the .NET Version Manager (DNVM) command line tool.

Getting Started on Windows

The easiest way to get started on Windows is to grab the latest preview of Visual Studio 2015, which can be found here.

Visual Studio will install DNVM for you, so if you open a developer command prompt and type dnvm you should get some help text.

Upgrading DNVM or running without Visual Studio

If you don't want to install Visual Studio or want to upgrade DNVM to the latest version then you need to run the following command:

####CMD

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

####Powershell

&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

This will download the DNVM script and put it in your user profile. You can check the location of DNVM by running the following in a cmd prompt:

where dnvm

If the output of where dnvm shows a program files location before the user profile, or doesn't show an entry in user profile, then the install has either failed or your PATH is incorrect. After installing dnvm you should have the dnvm script in %USERPROFILE%\.dnx\bin and that path needs to be on your PATH.

OS X

See the instructions on the ASP.NET 5 Documentation site: Installing ASP.NET 5 on Mac OS X

Linux

  • Debian, Ubuntu and derivatives see here
  • CentOS, Fedora and derivatives don't currently have a separate guide. We should have one soon. The commands are mostly the same, with some differences to account for the different package manager

Running an application

Now that you have DNVM, you need to use it to download a DNX to run your applications with:

dnvm upgrade

DNVM has the concept of a stable and unstable feed. Stable defaults to NuGet.org while unstable defaults to our dev MyGet feed. So if you add -u or -unstable to any of the install or upgrade commands you will get our latest CI build of the DNX instead of the one last released on NuGet.

DNVM works by manipulating your path. When you install a runtime it downloads it and adds the path to the dnx binary to your PATH. After doing upgrade you should be able to run dnvm list and see an active runtime in the list.

You should also be able to run dnx and see the help text of the dnx command.

Running the samples

  1. Clone the ASP.NET 5 Home repository: https://github.com/aspnet/home
  2. Change directory to the folder of the sample you want to run
  3. Run dnu restore to restore the packages required by that sample.
  4. You should see a bunch of output as all the dependencies of the app are downloaded from MyGet.
  5. Run the sample using the appropriate DNX command:
    • For the console app run dnx . run.
    • For the web apps run dnx . web on Windows or dnx . kestrel on OS X/Linux.
  6. You should see the output of the console app or a message that says the site is now started.
  7. You can navigate to the web apps in a browser by navigating to http://localhost:5001 or http://localhost:5004 if running on OS X/Linux.

Documentation and Further Learning

Community Standup

The community standup is held every week and streamed live to YouTube. You can view past standups in the linked playlist.

If you have questions you can also jump online during the next standup and have them answered live.

Wiki Documentation

We have some useful documentation on the wiki of this Repo. This wiki is a central spot for docs from any part of the stack.

If you see errors, or want some extra content, then feel free to create an issue or send a pull request (see feedback section below).

ASP.NET/vNext

The vNext page on the ASP.NET site has links to some TechEd videos and articles with some good information about vNext.

Repos and Projects

These are some of the most common repos:

A description of all the repos is here.

Feedback

Check out the contributing page to see the best places to log issues and start discussions.

home's People

Contributors

analogrelay avatar chengtian avatar chrisklug avatar danroth27 avatar davidfowl avatar dougbu avatar eilon avatar glen-84 avatar glennc avatar graemechristie avatar haacked avatar halter73 avatar henkmollema avatar janezhouq avatar kanchanm avatar kichalla avatar lodejard avatar loudej avatar marcusoftnet avatar michaldudak avatar mrdnk avatar muratg avatar ntaylormullen avatar patricknausha avatar peterblazejewicz avatar rowanmiller avatar rynowak avatar tlk avatar tratcher avatar tugberkugurlu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.