Bootstrap Prototype Boilerplate
Use POW for a quick local server without having to mess with your hosts file or Apache configs.
This is intended to help with creating quick static html files only.
- You will need to install NodeJS for the build tools to work properly.
- Install POW (run
curl get.pow.cx | sh) and symlink the root directory of your app:
ln -s /path/to/myapp
- Go to http://myapp.dev (or whatever you named the symlink)
- Update the first line (
path.root) of /tools/build.properties to include the path of your app.
- Make the build script executable by running the following command from the root of your app:
chmod +x ./tools/build.sh
From the root directory of your app, execute
./tools/build.sh to run a full build (compile all assets and increment the version number).
Take a look at the ./tools/build.xml file for a list of targets. A few examples are:
./tools/build.sh compile-lessto compile your Less files into CSS
Place your custom Less CSS files in the
/lib/less directory and they will be compiled to CSS and combined automatically with the compile-less build task.
Place your custom CoffeeScript files in the
Anything you place in the
When you use POW, everything is served out of the /public directory, so place your static HTML files there as well as any other static files or images that don't need to be compiled as part of the build process.