A template for starting front-end projects. Webpack for
require system, build
pipeline, and development server. Boostrap and Handlebars.js included. No
front-end frameworks included.
- Download this template.
- Unzip and rename the template directory.
README.mdand fill with your own content.
- Replace all instances of
ga-wdi-boston.browser-templatewith the name of your project.
- Move into the new project and
- Add all of the files in your project with the command
git add -A
- Note: THIS IS THE ONLY TIME YOU SHOULD RUN THIS COMMAND
- Commit all of your files with the command
- Your commit title should read
- Install dependencies with
The "manifest" or entry-point is
assets/scripts/index.js. In general, only
application initialization goes in this file. It's normal for developers to
start putting all code in this file, but encourage them to break out different
responsibilities and use the
require syntax put references where they're
Developers should set
config.apiOrigins.development if it differs from the default). With
apiOrigins set, developers may rely on
config.apiOrigin as the base for API
Developers should use getFormFields to retrieve form data to send to an API.
To deploy a browser-template based SPA, run
Developers should run these often!
grunt nagor just
grunt: runs code quality analysis tools on your code and complains
grunt <server|serve|s>: generates bundles, watches, and livereloads
grunt test: runs any automated tests, depends on
grunt build: place bundled styles and scripts where
index.htmlcan find them
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact firstname.lastname@example.org.