GithubHelp home page GithubHelp logo

dojo-boilerplate's Introduction

Dojo Boilerplate: A Starter Kit for Dojo Development

The Dojo Boilerplate is a set of files to help you rapidly get up and running with the Dojo Toolkit. It illustrates some basic best practices when working with Dojo. This is the branch for the new Dojo 1.7 loader and build systems, which use AMD modules; there is also a branch using the old synchronous loader, for use with Dojo 1.6.

Huge thanks go out to neonstalwart for his original dojo-requirejs-template project. Though that repository is no longer maintained, it was instrumental in providing guidance for earlier versions of the AMD branch.

Quick Start

  1. Clone the repository using git clone --recursive.
  2. Develop your project in src/ until it is amazing.
  3. Run build.sh, which will create an awesome optimised build in dist/.
  4. Upload dist/ for millions of people the world over to enjoy.
  5. Hapyness.

Windows Users

If you have msysgit installed, run Git Bash and verify some dependencies by running the following commands:

which java
which node

If at least java is available, you’re ready to go; cd to your project directory and follow the Quick Start instructions above. If Java is missing, you will need to install it. Node.js is optional, but will reward you with much faster builds.

A brief tour

  • The starting point of the boilerplate is the file at src/index.html for the client, and src/server.sh for a server running Node.js. These files are responsible for loading the Dojo loader and the application’s bootstrapper script.
  • The file src/app/run.js is your application’s bootstrapper script. In it, you can configure paths, packages, and other configuration options that should apply to both the client and the server. By default, this file simply configures paths and packages and then loads src/app/main.js (by way of the second [ 'app' ] argument).
  • The file build.sh takes your application files and builds them for production use using the Dojo build tool. It depends on the presence of the build profile at src/app/app.profile.js.
  • The file src/app/resources/app.css contains import statements to load the CSS for Dojo’s Claro theme. If you are not using Dijit widgets, you probably want to remove these imports!
  • The directory src/dbp contains tools you may find useful. These tools are a work in progress, and are not yet updated to AMD syntax.

Useful resources

About the boilerplate

This boilerplate is constantly updated to try to reflect the latest and greatest features and design patterns for writing Web apps with Dojo, but it relies heavily on information and contributions from other users. If you have an idea, suggestion, or problem, please report it or create a pull request! (Please note that you will need to have signed the Dojo CLA before your pull requests are accepted, for the good of us all!)

License

The Dojo Boilerplate is licensed under the same terms as the Dojo Toolkit. Consult the individual projects (see the Useful resources section above) for additional licensing information.

dojo-boilerplate's People

Contributors

csnover avatar rmurphey avatar rwaldron avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.