Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to CDN, touched up readme

  • Loading branch information...
commit 8d4258b63bbc649ff4d44767b47eb918b60f1323 1 parent 13eba3a
Paul Bouchon authored
View
11 dojo1.7-boilerplate/README.markdown
@@ -2,18 +2,15 @@
##About
-This boilerplate is a working, generic, AMD-formatted web application that has the OpenCoweb, RequireJS, and Dojo frameworks already configured and working. It is meant to serve as a starting point for any future applications developed for the OpenCoweb framework using Dojo 1.7 with RequireJS so that minimal or no setup is required.
+This boilerplate is a working, generic, AMD-formatted web application that has the OpenCoweb and Dojo frameworks already configured and working. It is meant to serve as a starting point for any future applications developed for the OpenCoweb framework using Dojo 1.7 AMD so that minimal or no setup is required.
##Quick Start
1. If you haven't already, follow [these instructions](http://opencoweb.org/ocwdocs/tutorial/install.html) to deploy a Coweb instance.
-2. Clone repository and initialize Dojo submodules in the coweb deployment directory:
+2. Clone repository:
```console
$ git clone git@github.com:opencoweb/coweb-boilerplates
-$ cd coweb-boilerplates/dojo1.7-boilerplate
-$ git submodule init
-$ git submodule update
```
3. Start a coweb server instance.
4. Visit the app in your browser.
@@ -27,10 +24,6 @@ The structure of this directory is extremely straight forward. The following fil
* ```application.css``` : serves as the main CSS of the application
* ```main.js``` : serves as the bootstrap file for the application, configures globals
-##Important Development Notes
-
-* In the bootstrap file, ```main.js``` , the global dependency 'org/cometd' should be uncommented only if you are using a [Developer's Setup](https://github.com/opencoweb/coweb/wiki/Developer-Setup).
-
##License
Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
View
1  dojo1.7-boilerplate/application.js
@@ -18,6 +18,7 @@ define(
// get a session instance
var sess = coweb.initSession();
+
// do the prep
sess.prepare();
}
1  dojo1.7-boilerplate/dijit
@@ -1 +0,0 @@
-Subproject commit 6cb54a59165584d585cf7e0d658f0b87e0964c44
1  dojo1.7-boilerplate/dojo
@@ -1 +0,0 @@
-Subproject commit ea56cba922368e9e19273ff9ab4015e313caf47c
1  dojo1.7-boilerplate/dojox
@@ -1 +0,0 @@
-Subproject commit c8d86351d606d3fd939c37f56fe24d3fdbf2bae5
View
29 dojo1.7-boilerplate/index.html
@@ -4,7 +4,34 @@
<meta charset="utf-8" />
<title>Cooperative App Example</title>
<link rel="stylesheet" href="application.css" type="text/css" />
- <script data-main="main" src="../lib/require.js"></script>
+ <script type="text/javascript">
+ var dojoConfig = {
+ baseUrl: './',
+ async:true,
+ paths : {
+ coweb : '../lib/coweb',
+ cowebx: '../lib/cowebx',
+ org : '../lib/org'
+ },
+ packages:[{
+ name: 'dojo',
+ location:'http://vhost1629.developer.ihost.com/dojotoolkit/1.7.0/dojo',
+ main:'main'
+ },
+ {
+ name: 'dijit',
+ location:'http://vhost1629.developer.ihost.com/dojotoolkit/1.7.0/dijit',
+ main:'main'
+ },
+ {
+ name: 'dojox',
+ location:'http://vhost1629.developer.ihost.com/dojotoolkit/1.7.0/dojox',
+ main:'main'
+ }]
+ };
+ </script>
+ <script type="text/javascript" src="http://vhost1629.developer.ihost.com/dojotoolkit/1.7.0/dojo/dojo.js"></script>
+ <script type="text/javascript" src="main.js"></script>
</head>
<body class="claro">
<div dojoType="dijit.layout.BorderContainer" design="sidebar" gutters="true"
View
46 dojo1.7-boilerplate/main.js
@@ -1,45 +1,3 @@
-//
-// Main app config file.
-//
-// Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
-//
+var cowebConfig = { adminUrl: '../admin', cacheState : true };
-var cowebConfig = { adminUrl: '../admin' };
-var dojoConfig = {
- parseOnLoad: false,
- mblAlwaysHideAddressBar: true
-};
-
-require({
- paths : {
- coweb : '../lib/coweb',
- org : '../lib/org'
- },
- packages:[{
- name: 'dojo',
- location:'dojo',
- main:'./main',
- lib: '.'
- },
- {
- name: 'dijit',
- location:'dijit',
- main:'./main',
- lib: '.'
- },
- {
- name: 'dojox',
- location:'dojox',
- main:'./main',
- lib: '.'
- }]
-}, [
- //Global
- //'org/cometd', *Uncomment if using Developer Setup
- 'dojo',
- 'dijit',
- 'dojox',
-
- //App itself
- 'application'
-]);
+require(["application"]);
Please sign in to comment.
Something went wrong with that request. Please try again.