Skip to content

Commit

Permalink
Added build hot-to
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonPobiega committed Mar 21, 2011
1 parent 16b20aa commit 40866c4
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 8 deletions.
9 changes: 9 additions & 0 deletions src/Restbucks.Site/Controllers/TutorialsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ public ActionResult Index()
}
return View();
}

public ActionResult Building()
{
if (IsPolish())
{
return View("Building-pl");
}
return View();
}
}
}
5 changes: 3 additions & 2 deletions src/Restbucks.Site/Restbucks.Site.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@
<Content Include="Views\API\LinkRelations.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\API\Resources.cshtml" />
<None Include="Views\API\Resources-pl.cshtml" />
<Content Include="Views\Tutorials\Building.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Tutorials\Index.cshtml" />
Expand Down Expand Up @@ -197,7 +198,7 @@
<Content Include="Views\API\LinkRelations-pl.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\API\Resources-pl.cshtml" />
<Content Include="Views\API\Resources.cshtml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
Expand Down
41 changes: 41 additions & 0 deletions src/Restbucks.Site/Views/Tutorials/Building-pl.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@{
ViewBag.Title = "Budowanie aplikacji";
}

<h3>Budowanie aplikacji</h3>
<p>
<span class="restbucks">Restbucks.net</span> wykorzystuje dwia z najnowszych frameworków związanych z .NET: ASP.NET MVC 3 oraz
WCF Web APIs. Jest napisany w C# 4 przy uzyciu VisualStudio 2010.
</p>
<p>
Oto kroki wymagane do zbudowania i uruchomienia aplikacji
</p>
<ol>
<li>Zobąć źródła klonując repozytorium git'a
<pre>git://github.com/SzymonPobiega/restbucks-wcf.git</pre>
lub pobierając je bezpośrednio <a href="https://github.com/SzymonPobiega/restbucks-wcf/zipball/master">stąd</a>.
</li>
<li>
Zdobąć binaria lub źródła WCF Web APIs ze <a href="http://wcf.codeplex.com">strony projektu</a> na codeplex'ie.
</li>
<li>
Zbuduj WCF Web APIs.
</li>
<li>
Otwórz folder 'buid' WCF Web APIs oraz 'lib' Restbucks.
</li>
<li>
Dla każdego pliku <em>.dll.txt</em> z katalogu 'lib', znajdź odpowiadający mu plik <em>.dll</em> w katalogu 'build' i skopiuj
go do tej samej lokalizacji co plik <em>.dll.txt</em>.
</li>
<li>
Zbuduj Restbucks.
</li>
<li>
Uruchom klienta (projekt <em>Restbucks.Client.Console</em>).
</li>
<li>
Jeśli chciałbyś uruchomić serwer na swojej maszynie, zmodyfikuj adres bazowy klienta w pliku Program.cs
a następnie uruchom usługę (<em>Restbucks.Service</em> project) na lokalnym serwerze IIS (lub Cassini).
</li>
</ol>
41 changes: 41 additions & 0 deletions src/Restbucks.Site/Views/Tutorials/Building.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@{
ViewBag.Title = "Building the sample";
}

<h3>Building the sample</h3>
<p>
<span class="restbucks">Restbucks.net</span> uses cutting edge .NET frameworks, ASP.NET MVC 3 and WCF Web APIs.
It is written in C# using VisualStudio 2010 solution and project structure.
</p>
<p>
Here are the steps required to build the samples from the source code.
</p>
<ol>
<li>Get the source code, either by cloning git repository
<pre>git://github.com/SzymonPobiega/restbucks-wcf.git</pre>
or by downloading the latest source code from <a href="https://github.com/SzymonPobiega/restbucks-wcf/zipball/master">here</a>.
</li>
<li>
Get WCF Web APIs binaries or source code from <a href="http://wcf.codeplex.com">its website</a> at codeplex.
</li>
<li>
Build WCF Web APIs.
</li>
<li>
Open 'buid' folder of WCF Web APIs and 'lib' folder of Restbucks.
</li>
<li>
For every <em>.dll.txt</em> file in 'lib' folder, find corresponding <em>.dll</em> file in 'build' folder and copy
it to the same location as <em>.dll.txt</em>.
</li>
<li>
Build Restbucks.
</li>
<li>
Run the client (<em>Restbucks.Client.Console</em> project).
</li>
<li>
If you want to run the client against the local service instance, modify the root URL in the client code (Program.cs)
and run the service (<em>Restbucks.Service</em> project) locally.
</li>
</ol>
6 changes: 3 additions & 3 deletions src/Restbucks.Site/Views/Tutorials/Index-pl.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

<h3>Tutoriale dla WCF Web APIs w oparciu o przykład Restbucks</h3>
<p>
TBD
</p>
<ul>
<li><a href="@Url.Action("Building")">Budowanie i uruchamianie aplikacji <span class="restbucks">Restbucks.net</span>.</a></li>
</ul>
6 changes: 3 additions & 3 deletions src/Restbucks.Site/Views/Tutorials/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

<h3>Restbucks-based WCF Web APIs tutorials</h3>
<p>
TBD
</p>
<ul>
<li><a href="@Url.Action("Building")">Building and running <span class="restbucks">Restbucks.net</span> application.</a></li>
</ul>

0 comments on commit 40866c4

Please sign in to comment.