Questions tagged [hottowel]

Hot Towel is a Visual Studio Template for creating a Single Page Application (SPA).

Hot Towel is a Visual Studio Template for creating a Single Page Application (SPA). It is built using the following components:

Hot Towel is delivered in three different forms:

The Hot Towel template was authored by John Papa, and is described in detail on his site.

333 questions
7
votes
3 answers

How to set up login view (user authentication) in SPA HotTowel template?

Some of the Single Page Application (SPA) templates in VS2012 MVC4 have built-in authentication. HotTowel SPA Template does not. What is the proper way to implement user authentication (login screen) in SPA HotTowel? HotTowel uses Durandal JS, so I…
mitaka
  • 2,159
  • 1
  • 30
  • 30
6
votes
1 answer

Hot Towel gulp build

I am working through the tutorial about Node.js found here: http://www.johnpapa.net/get-up-and-running-with-node-and-visual-studio/ I can get the app to run in glup serve-dev --sync. This works well. The problem I have it with gulp…
6
votes
2 answers

how to view breeze client validation errors

I have read through the breeze validator information, but am not sure how to view the actual error that is occurring. Error: client side validation errors encountered - see the entity Errors collection on this object for more detail. I believe it's…
user1813251
  • 329
  • 3
  • 18
6
votes
2 answers

Breeze Metadata request URL with cache bust

I'm currently using Breeze.js (version 1.4.1) along with the HotTowel template, and everything is working wonderfully. However, I was wondering if there is a way to have breeze include in the request sent to get the Metadata a configurable suffix,…
Pablo Romeo
  • 11,298
  • 2
  • 30
  • 58
6
votes
1 answer

Unit testing the viewmodels and mocking the dependencies

I'm pretty new in the javascript testing world and I'm having problems implementing some in my hottowel application. Most of the examples that I found online don't go as far as testing amd/require and the ones about amd/require don't show some other…
Lucas
  • 63
  • 3
6
votes
4 answers

hottowel (durandal) + typescript

this is my first post, so wish me luck :) I want to use hot towel(durandal) + typescript , i followed these threads: - how-can-i-use-a-class-for-my-shell-viewmodel-in-durandal - how-to-use-fancybox-in-combination-with-durandal-en-typescript -…
Amirreza
  • 575
  • 9
  • 25
5
votes
3 answers

Ui-Router 404 when redirecting with ADAL

I'm currently trying to hook in the Azure Directory Authentication Library (ADAL.JS) into UI-Router. I've got it wired in, and it redirects correctly, but it always chucks a 404 before the redirect. The redirect works, and then gets sent back to…
John Mc
  • 444
  • 2
  • 15
5
votes
3 answers

How to Install Hot towel SPA on Visual 2013, I cannot see the template in the web section

EDIT: I forgot to say that on my machine there was VS2012 installed either, sorry. I tried with VS2013 but it did't work for me, may be I am missing something. Creating a new project I've chosen Visual C# -> Web than a Web Application and I cannot…
5
votes
2 answers

Create a HotTowel site with login (facebook, twitter, google, microsoft)?

I am creating the site using the following steps. Create a Asp.net Mvc 4 web application with standard "Internet application" template. So the login code is created. Then update all referenced code use NuGet. Run Install-Package HotTowel and…
ca9163d9
  • 27,283
  • 64
  • 210
  • 413
5
votes
3 answers

Call Function on View Loaded (Activate) in Hot Towel/Durandal Single Page App

I'm using the Hot Towel SPA project I'm trying to call a simple js function when a view is activated. What I'm seeing is that the item does not seem to be loaded when the activate function is called. I've also tried putting the code in an initialize…
Ben Ripley
  • 2,115
  • 21
  • 33
5
votes
1 answer

How do I use windows authentication with roles with Hot Towel?

I can spin up a standard asp.net mvc 4 intranet project and decorate the controller or methods with things like: [System.Web.Mvc.Authorize(Roles = "MyApp Users")] I have tested it and it will work perfectly (since my domain account is a member of…
Mr.Hardy
  • 909
  • 8
  • 13
5
votes
1 answer

Translating views with HotTowel (Durandal framework) + VS2012

I develop an ASP.NET MVC solution with Durandal and Breeze. I need to translate frontend to french and dutch. How to proceed with Durandal/knockout? In a classic ASP.NET MVC solution we have the opportunity to have the views rendered server side…
Bronzato
  • 9,438
  • 29
  • 120
  • 212
5
votes
2 answers

Hot Towel: Why is Durandal and Require in the App folder rather than the Script folder?

This is coming from the idea of 3rd party libraries being in Script to discourage developers from customizing them. It would encourage them to write extensions to make it easier to take in a new version of either library.
5
votes
1 answer

How to use a local database with the SPA hot towel template on ASP.NET MVC 4

I'm probably the most inexperienced person on MVC let alone the Hot Towel SPA but never the less I'm expected to produce a system based on these technologies. I've read the Breeze website and all of John Papa's documentation but I just have no idea…
5
votes
4 answers

Defining the jQuery dependency for a module with Durandal in the HotTowel SPA

I am going round and round in circles trying to understand RequireJS and how to use it to load dependencies that DON'T show up as Undefined when I try and use them in Modules. I started with John Papa's Pluralsight "SPA with HTML5" course. What I…
Ian Smith
  • 193
  • 3
  • 10
1
2
3
22 23