DanWahlin/CustomerManager

errors in require.js

xdiscovery opened this issue · 2 comments

Hi Dan,

I tried to install also this last version of the customermanager sample.
I got
/api/dataservice
is missing.

also, how to change the url in require.js to look for the /app/ folder?
(It look for localhost/app/services....., while I want it in localhost/mysite/app .)

Thank you!!

The backend for the project is using ASP.NET MVC 4/Web API and Entity Framework so I'm assuming you have ASP.NET MVC 4 installed and available? I recently checked in a small change that converted the project to a Web Application Project so you might trying grabbing the latest code and see if that gets going for you. If not I suspect IIS Express isn't configured properly as far as the port it watches on and virtual directory.

As far as changing the path, go into Scripts/main.js and you'll see the default path at the top of the file. You can read about that more here: http://weblogs.asp.net/dwahlin/archive/2013/05/22/dynamically-loading-controllers-and-views-with-angularjs-and-requirejs.aspx

uuups, nope. I don't have asp.net, I did not know it was required.
Thank you for the update!