I am new to node.js and Bootstrap. Here is what I have done so far on a 
Linux setup.

   1. 
   
   $ mkdir myapp
   2. 
   
   $ mv bootstrap myapp/mybootstrap - Moving the downloaded compiled 
   bootstrap to "mybootstrap" folder under "myapp" directory 
   
2.$ emacs app.js

app.js looks like below

var express = require('express');
var fs = require('fs');

          var app = express();

     app.get('/', function(request, response){
             response.send(fs.readFileSync('index.html', 'utf8'));
         });

          var port = process.env.PORT || 8888;

         app.listen(port, function(){
             console.log("Listening on " + port);
       });


   1. $ emacs index.html - I have copied the content of HTML shown at *
   
http://getbootstrap.com/getting-started/*<http://getbootstrap.com/getting-started/>.
 
   I have changed the path settings for referring to bootstrap files as below

[image: 
capture]<https://f.cloud.github.com/assets/4803827/1255061/b5c620ca-2b7e-11e3-8273-dd6d26af2b12.JPG>

   1. All the necessary require packages are in place

When I execute node app, the page does show up, however the bootstrap CSS 
is not applied. 

Google Chrome's "Inspect Element" option shows the error as " 

http://IPADDRESS:8888/mybootstrap/css/bootstrap.min.css
404
Not Found"

I don't know what am I doing wrong. 

Any help would be greatly appreciated.

Thanks
Vinay

 
I posted this issues under two issues on github, not realizing that the 
deployment and dev issues are not addressed. The issue on github is marked 
as Closed, however, the content is still available where I have explained 
the problem I am facing. 
 
 
The below two URLs refer to the same problem. 10919 has all the steps with 
screen shots.
 
*https://github.com/twbs/bootstrap/issues/10916*<https://github.com/twbs/bootstrap/issues/10916>
 
*https://github.com/twbs/bootstrap/issues/10919*<https://github.com/twbs/bootstrap/issues/10919>
 
I am unable to understand why bootstrap css files are not being picked up 
from local server. Any help here would be greatly appreciated.
 
Thanks
Vinay

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to