Mobile Boilerplate homepage | Documentation table of contents
Once you have cloned or downloaded Mobile Boilerplate, creating a site or app usually involves the following:
- Set up the basic structure of the site.
- Add some content, style, and functionality.
- Run your site locally to see how it looks.
- (Optionally run a build script to automate the optimization of your site - e.g. ant build script).
- Deploy your site.
A basic Mobile Boilerplate site initially looks something like this:
.
├── css
│ ├── main.css
│ └── normalize.css
├── doc
├── img
│ ├── startup
│ │ └── [apple-startup-images]
│ └── touch
│ └── [mobile-touch-icons]
├── js
│ ├── helper.js
│ ├── main.js
│ ├── plugins.js
│ └── vendor
│ ├── modernizr-2.8.3.min.js
│ └── jquery-2.1.3.min.js
├── .htaccess
├── 404.html
├── index.html
├── humans.txt
├── robots.txt
├── manifest.webapp
├── crossdomain.xml
└── favicon.ico
What follows is a general overview of each major part and how to use them.
This directory should contain all your project's CSS files. It includes some initial CSS to help get you started from a solid foundation. About the CSS.
This directory contains all the Mobile Boilerplate documentation. You can use it as the location and basis for your own project's documentation.
This directory should contain all your project's JS files. Libraries, plugins, and custom code can all be included here. It includes some initial JS to help get you started. About the JavaScript.
The default web server configs are for Apache. For more information, please refer to the Apache Server Configs repository.
Host your site on a server other than Apache? You're likely to find the corresponding server configs project listed in our Server Configs repository.
A helpful custom 404 to get you started.
This is the default HTML skeleton that should form the basis of all pages on your site. If you are using a server-side templating framework, then you will need to integrate this starting HTML with your setup.
Make sure that you update the URLs for the referenced CSS and JavaScript if you modify the directory structure at all.
If you are using Google Analytics, make sure that you edit the corresponding snippet at the bottom to include your analytics ID.
Edit this file to include the team that worked on your site/app, and the technology powering it.
Edit this file to include any pages you need hidden from search engines.
Edit this manifest file to include information about your mobile web app if you would like to add Open Web App support for Firefox OS devices as well as Firefox for Android.
A template for working with cross-domain requests. About crossdomain.xml.
Replace the default favicon.ico
, apple touch icons and startup images with your own. You
might want to check out Hans Christian's handy HTML5 Boilerplate Favicon and
Apple Touch Icon
PSD-Template.