Skip to content
Your app. Done.
Latest commit 966aa2d @daffl daffl Merge pull request #522 from donejs/type-option
Adding pass-through for type option and separate option for intializi…

@page DoneJS @hide title @hide sidebar

DoneJS logo

DoneJS is easiest way to get a high performance, real time, web and mobile application done! The framework provides a nearly comprehensive combination of technologies for building complex JavaScript applications.

If you are looking for the fastest way to get a fully modern development environment setup and produce a lightning fast application, you've come to the right place.

DoneJS is a combination of the following technologies:

  • StealJS - ES6, CJS, and AMD module loader and builder
  • CanJS - Custom elements and Model-View-ViewModel utilities
  • jQuery - DOM helpers
  • jQuery++ - Extended DOM helpers
  • QUnit or Mocha - Assertion library
  • FuncUnit - Functional tests
  • Testee or Karma - Test runner
  • DocumentJS - Documentation
  • can-ssr - Server-Side Rendering Utilities for CanJS

DoneJS is a npm package that simply installs all the previous technologies. This site exists to explain the collective benefits of these technologies and provides a [Guide guide] for using them together to build an "amazing" application.

Features ([Features main article])

Application features:

  • Isomorphic (same code on server and client).
  • Pushstate routing
  • Real Time
  • Run everywhere ( IE9+, Android, iOS, node-webkit )

Performance features:

  • Progressive loaded optimized production builds
  • Caching and minimal data requests
  • Minimal DOM updates
  • Application logic in worker thread

Maintenance features:

  • Modlet workflow - tests, docs, and demo pages
  • Use and create NPM packages
  • Custom HTML elements
  • MVVM single direction architecture
  • Multi Versioned Documentation
  • Hot Module Swapping
  • Functional tests

Getting Started Guide ([Guide main article])

The DoneJS Getting Started Guide walk you through creating a PlaceMyOrder application.

  1. Install
    1. Setup Server
    2. Setup Client
  2. Setting up server side rendering
    1. Create the main template
    2. Create the application view model
    3. Render the main template on the server
    4. Start the server
  3. Setting up routing
    1. Create routes
    2. Create a homepage element
    3. Create a restaurant list element
    4. Switch between pages
    5. Create a header element
    6. Create a order history element
    7. Switch between three pages
  4. Getting data from the server and showing it in the page.
  5. Creating a unit-tested view model and demo page
    1. Identify the view model state properties
    2. Test the view model
      1. Setup the test
      2. Create fake data
      3. Use fake data for ajax requests
      4. Create a view model instance and test its behavior
    3. Write the view model
      1. Make dependent models
      2. Define stateful property behaviors
      3. Verify the test
    4. Create a demo page
    5. Write the template
      1. Verify the demo page and application works.
  6. Setup continuous integration (CI) and tests.
  7. Nested routes
  8. Importing other projects
  9. Creating data
  10. Setup up a real-time connection
  11. Production Builds
    1. Bundling your app
    2. Building to iOS and Android
    3. Building to NW.js
  12. Deploying
Something went wrong with that request. Please try again.