Serve bootstrap static files in flatiron
Serve bootstrap static file in flatiron
npm install flatiron-bootstrap
At its core
flatiron-bootstrap is a broadway-compatible plugin which can be used by any flatiron http application with a static serving plugin
var flatiron = require'flatiron'path = require'path'app = flatironapp;appconfigfile file: pathjoin__dirname 'config' 'config.json' ;appuseflatironpluginshttp;appuseflatironpluginsstatic;appuserequire'flatiron-bootstrap';approuterget'/'thisresjson 'hello': 'world';appstart3000;
Now start the server with
and the following url's will serve bootstrap whose version is defined in the package.json
The version of this package is equal to the version of bootstrap served.
If you like this project, please watch this and follow me.
Here is a list of Contributors
I accept pull requests and guarantee a reply back within a day
Report here. Guaranteed reply within a day.
Pavan Kumar Sunkara (email@example.com)