GithubHelp home page GithubHelp logo

isabella232 / hwc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry/hwc

0.0 0.0 0.0 60.22 MB

License: Apache License 2.0

Go 15.95% ASP 5.45% Shell 0.04% C# 13.57% CSS 0.14% HTML 1.10% JavaScript 63.47% PowerShell 0.03% C++ 0.18% C 0.06%

hwc's Introduction

hwc (hostable web core)

hwc is a wrapper around Hosted Web Core API for running .NET Applications on Windows.

Dependencies

Compiling on Windows

  1. Install Golang from the golang downloads page.
  2. Install MinGW-w64 using the mingw-w64-install.exe. Select the x86_64 Architecture.
  3. Ensure you've added the x86_64-w64-mingw32-gcc compiler to your Windows PATH. It will be installed to a directory similar to: C:\Program Files\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
git clone --recursive git@github.com:cloudfoundry/hwc
cd "hwc"
.\scripts\build.ps1

Cross Compiling on OSX

  1. Install Golang from the golang downloads page.
  2. Install MinGW-w64 (+ x86), brew install mingw-w64
git clone --recursive [email protected]:cloudfoundry/hwc
cd hwc
./scripts/build.sh

Cross Compiling on Linux

  1. Install Golang sudo apt-get install gccgo-go
  2. Install MinGW-w64 (+ x86), sudo apt-get install mingw-w64
git clone --recursive [email protected]:cloudfoundry/hwc
cd hwc
./scripts/build.sh

Running the Tests (Windows Only)

Install Windows/.NET Features from Powershell by running:

Enable-WindowsOptionalFeature -Online -All -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -All -FeatureName IIS-WebSockets
Enable-WindowsOptionalFeature -Online -All -FeatureName IIS-HostableWebCore
Enable-WindowsOptionalFeature -Online -All -FeatureName IIS-ASPNET45

Install ginkgo:

go get github.com/onsi/ginkgo/ginkgo

Execute the tests: (from an administrator console)

& "path\to\ginkgo.exe" -r -race

This will run the test suite which spins up several web applications hosted under hwc.exe and validates the behavior.

Running (Windows Only)

When web applications are pushed to Cloud Foundry they are pushed out to one or more Windows cells and run via hwc.exe. For development purposes you can run an ASP.NET web application much like IISExpress by directly invoking hwc.exe.

  1. Install the Windows features in the "Running the Tests" section above.
  2. Build hwc.exe, or Download the prebuilt binary from the GitHub releases page.
  3. From PowerShell start the web server: & { $env:PORT=8080; .\hwc.exe -appRootPath "C:\wwwroot\inetpub\myapproot" }. Ensure the appRootPath points to a directory with a ready to run ASP.NET application.

You should now be able to browse to http://localhost:8080/ and even attach a debugger and set breakpoints to the hwc.exe process if so desired.

hwc's People

Contributors

dgoddard avatar mavenraven avatar sunjaybhatia avatar mhoran avatar rabadiw avatar sesmith177 avatar sneal avatar pnikonowicz avatar stefanschneider avatar davidjahn avatar mdelillo avatar dependabot[bot] avatar hashneo avatar markkropf avatar aemengo avatar ajgokhale avatar aminjam avatar arjun024 avatar christopherclark avatar dgodd avatar arthfl avatar joshzarrabi avatar mvalliath avatar micahyoung avatar natalieparellano avatar tisvictress 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.