You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# install gulp globally so you can run it from the command line
npm install -g gulp-cli
# install all dependencies
npm install
# run gulp to start the livereload server on http://localhost:8080
gulp
NOTE: For Node.js versions below 0.12, you need to install an ES6-style Promise Polyfill (in case you receive a "Promise is undefined" error). To run with Promise, use:
npm install es6-promise
Then add the following line at the top of your gulpfile.babel.js:
varPromise=require('es6-promise').Promise;
Check out stackoverflow for more details on this issue.
The app entry point is js/index.js.
It performs the initial application setup (loads the app when jQuery loads, loads the initial data from the server etc.)
The main application object is js/app/index.js, which holds the necessary global application state flags and application level methods.
It is extended once the app loads in index.js with the contents of app/constructor and app/cache.
This means that from here on now, any file that does require(/* path to js/app */) is getting that populated object since calls to require are cached.
The js/module directory holds all the tracers and the random-data-creators.
All the modules are exported together and then "required" inside the entry point js/index.js where they are attached to the global window object so eval can use them when executing code in the code editor.
The js/server directory holds all the code to load data from the server and utilizes promises from RSVP.js.
In js/server/ajax are some helper methods to make requesting from the server a little easier.
The main method is js/server/ajax/request.js that is used by all other methods to call $.ajax with certain options and set/reset the global isLoading flag for every request.