Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Angular.js, setting up a server for Drabbble
I am using a windows and would like to setup WAMP to run the angular.js app you are making called Dribbble in the Treehouse Workshops video.
If you could quickly walkthrough how to setup the server and host it on my localhost that would be great. I tried going through it but am getting a few error messages and the API calls aren't working.
Interestingly, the choice of a server for this project isn't very important since all files are served as static files. You just need something, anything that can serve static files. For quick static servers for testing and development, I tend to use node.js and http-server. But there's also python's SimpleHTTPServer which is what I believe Jim used in the video.
Of course WAMP will also work if you want to continue with the installation. My suggestion would be to choose a WAMP package that has good documentation and a good community behind it. Any issues encountered in installation may already have been covered in their documentation or could be quickly addressed by their community.
Ok great, that is what I thought. I tried setting up the node server and I think I got it work but I am still seeing this error message in my console? Any thoughts....I am about 18:35 into the video.
Denying load of chrome-extension://bjgfdlplhmndoonmofmflcbiohgbkifn/js/lib/jquery-2.0.2.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. localhost/:1 Denying load of chrome-extension://bjgfdlplhmndoonmofmflcbiohgbkifn/js/lib/backbone-min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. localhost/:1 GET chrome-extension://invalid/ chrome-extension://invalid/:1 GET chrome-extension://invalid/ chrome-extension://invalid/:1
Oh wow, very cool. Thank you so much for all your help. Just curious though, I am not seeing any JSON data or feedback from my API call to Dribble inside the console like it shows in the video around 18:35. That was what I thought the error was causing but now that it is clean and clear I am still not seeing it.
Promise this is my last question before I move on :).
Thanks in advance!
Yeah, so I am mapping it to users/taylor/applications/dabbble where my http server is setup (per the github) and am running i on localhost:8080.
I am getting this back from the network when making the API call to dribble but nothing on the console.
Can you try downloading the project files and running the completed project? If it works then it's likely something wrong in your code. If it doesn't then it might be something wrong in your setup.
Wow, yeah it does work when doing the completed project. At least this gives me hope :). I am going to dive back into this and see what I did wrong, although I checked my code numerous times I know I have missed something.
Thanks for all your help. You are awesome! Have a great hump day.
Thanks Taylor. Good luck!