Join the Stack Overflow Community
Stack Overflow is a community of 6.3 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I just started learning the AngularJS material design. Well, it's quite interesting but i still dont know how to run using Node. Below is my app structure -

enter image description here

All i know to test my app is by using serve in cmd for my project directory and test it by localhost. My question is can this be tested like other Node projects? Also i need some how to host this app.

When i try to open the index.html directly, the website looks like below -

enter image description here

All files linked correctly but still error shown in console.

enter image description here

Thanks in advance for your help.

share|improve this question
    
AngularJS is a client side library. NodeJS is irrelevant, no? – akonsu Jan 5 '15 at 18:12
    
Yes, but this material design is little different. It uses node_modules and when i try to open the index.html, the material design is not applied. – Raghav Manikandan Jan 5 '15 at 18:14
    
looks like angular does not run on the page. what do you have in the browser console? – akonsu Jan 5 '15 at 18:25
1  
I've just started working on a MEAN app (Mongo, Express, Angular, Node). I started by downloading a working scaffold from meanjs.org. It works out of the box. The meanjs.org stuff is full of best practices for organising code for node and angular, so I would recommend starting there. However don't expect to start work on some marvellous app immediately. I'd advise you to learn as much as you can from what they have done before trying to programme in earnest. There's Grunt, Bower, Jade, ecc. all explained and lots more. – mwarren Jan 5 '15 at 18:40
1  
looks like your links use file:// schema. you need to use http://. is your html file served by node server, or are you opening it from local drive directly? – akonsu Jan 5 '15 at 19:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.