Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 3.02 KB

File metadata and controls

76 lines (48 loc) · 3.02 KB

TradeHero Server

Getting Started

Get the source code

Clone the repository with all the submodules

git clone git@github.com:dmorris99/TH_SVR.git --recursive
git checkout origin/development --track

if you have an old version of git the option --recursive might not exist. In that case run:

git clone git@github.com:dmorris99/TH_SVR.git
git submodule update --init
git checkout origin/development --track

Configure Visual Studio

Enable NuGet Download

We use NuGet as a package manager, you need to enable package restoration in visual studio under:

TOOLS > Library Package Manager > Package Manager Settings

Turn on the Allow NuGet to download missing packages during build

Avoid Line Ending Conflict Issue

To avoid having 'empty' commits in git due to Windows/Mac line ending difference, we use the strip'em add-in for Visual studio. You should install it and and set the line ending to Unix (LF).

IIS Express configuration

by default IIS Express does not support PUT and DELETE. Here is a walkthrough on how to fix it: http://geekswithblogs.net/michelotti/archive/2011/05/28/resolve-404-in-iis-express-for-put-and-delete-verbs.aspx

Enabling PUT and DELETE verbs in IIS Express 8 (Without Admin console) http://stackoverflow.com/questions/10906411/asp-net-web-api-put-delete-verbs-not-allowed-iis-8/10907343#10907343

Enabling SSL during development

You should go through this to enable ssl during development and allow IIS to server to serve external traffic (to your iOS client for instance ;)

http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx http://www.iis.net/learn/extensions/using-iis-express/handling-url-binding-failures-in-iis-express

Make sure you read the last comment on hanselman.com tutorial by Weilin Chou to keep ssl certificate working after reboot.

API Console

To see list of API endpoints, visit https://apigee.com/nia1/embed/console/TradeHeroAPI. As you add more endpoint, please update Documentation/tradehero-wadl.xml

Making Unit Test runs with Windows Azure runtime dll depedency

http://blogs.msdn.com/b/seendabean/archive/2012/06/25/fileloadexception-in-unit-test-on-roleenvironment-isavailable-with-visual-studio-2012-rc-with-azure-sdk-1-7.aspx

You basically need to patch the config file of the test runner located at:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.executionengine.x86.exe.config

and add the following node under the configuration node:

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
 </startup>

Looking for more info about localization? Feel free to visit TH_IOS wiki!