Giter VIP home page Giter VIP logo

vscode-aspnet5-osx's Introduction

Visual Studio Code Setup

For ASP.NET 5 on Mac OS X

  1. Download and install Visual Studio Code
  • Instructions: https://code.visualstudio.com/Docs/setup
  • Navigate to root: cd ~/
  • To create a .bash_profile file: touch .bash_profile
  • To edit an existnig .bash_profile file: open -e .bash_profile
  • Also add the following to .bash_profile:
    export PATH="~/npm-global/bin:$PATH" 
    source dnvm.sh
    
  1. Install ASP.NET 5 on Mac OS X
  • Instructions: http://docs.asp.net/en/latest/getting-started/installing-on-mac.html
  • Install Homebrew if needed
    • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • Install command line developer tools when prompted
  • Uninstall kvm if previously installed
  • Get homebrew dnx repo (tap)
    brew tap aspnet/dnx
    
  • To update dnx repo: untap then tap
  • Install DotNet Version Manager: dnvm
    brew install dnvm
    dnvm
    dnvm upgrade
    
  • If dnvm will not run enter: source dnvm.sh
  1. Run console sample
  1. Run ** web sample**
  1. Scaffold an ASP.NET Web API app using Yeoman
  • If necessary install the node package manager: npm

  • Install Yeoman, the asp.net generator, grunt and bower:

    sudo npm install -g yo grunt-cli generator-aspnet bower

  • Go to parent folder in Terminal and run yo aspnet

    • Pick Web API Application, enter as name: HelloWebApi
  • Run dnu restore, then run as before

  • Open a browser and go to: http://localhost:5001/api/values

  • Press Enter to stop Kestrel, or kill as before

vscode-aspnet5-osx's People

Watchers

 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.