The WorldWide Telescope web client lets you explore the universe in your browser.
Перейти к файлу
Ron Gilchrist fbb65f1ded Issue #164 - Open for edit option in open tour dialog 2019-04-17 15:58:55 -07:00
controllers Issue #164 - Open for edit option in open tour dialog 2019-04-17 15:58:55 -07:00
controls Observing Location fully persistent and wired. 2019-04-15 15:35:52 -07:00
css Initial UI + plumbing of observing location 2019-03-17 15:03:56 -07:00
dataproxy Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
directives Final time scrubber fixes plus issues with place sharing, search data, and misc fixes uncovered during this code pass. 2019-03-05 09:13:25 -08:00
ext find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
factories Issue #53 - Fix to show proper lookAt value in dropdown after navigating via any thumbnail. 2019-04-16 20:31:06 -07:00
views Issue #164 - Open for edit option in open tour dialog 2019-04-17 15:58:55 -07:00
.editorconfig Moved grunt to root. Added bower and bower.json to manage external scripts. reconfigured gruntfile, package.json. 2015-01-24 21:04:36 -08:00
.gitattributes Moved grunt to root. Added bower and bower.json to manage external scripts. reconfigured gruntfile, package.json. 2015-01-24 21:04:36 -08:00
.gitignore Timescrubber fixes to work in minified environment 2019-02-22 00:45:42 -08:00
Default.aspx Issue #212 - Fix coordinate error state and surface that to user. No crashes possible with bad input now. 2019-04-17 15:06:07 -07:00
Gruntfile.js Initial UI + plumbing of observing location 2019-03-17 15:03:56 -07:00
README.md find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
app.js ESASky final changes - added to view ribbon. Also WIP on "view from location" bug 2019-03-11 12:37:44 -07:00
earth.jpg move webclient to its own directory 2014-11-26 17:49:08 -08:00
favicon.ico move webclient to its own directory 2014-11-26 17:49:08 -08:00
favicon.png move webclient to its own directory 2014-11-26 17:49:08 -08:00
package.json find/replace http://->// for protocol-agnostic resource fetching 2018-05-02 21:51:36 -07:00
packages.config removed dll from git. It only bloats the repo and does nothing. removed wurfl, build new sdk 2018-11-20 14:45:08 -08:00
sunCorona.png move webclient to its own directory 2014-11-26 17:49:08 -08:00
webclient.csproj removed dll from git. It only bloats the repo and does nothing. removed wurfl, build new sdk 2018-11-20 14:45:08 -08:00

README.md

WWT-Web - WorldWide Telescope

This repository contains the HTML5 SDK which is the rendering engine for the web client and the embeddable web control. It also contains the full web client code. This repository does not contain all the server-side endpoints needed to render tiles, constellation lines, etc. Some samples will be included in the future.

Prerequisites

  • Visual Studio 2013 (Free Community Edition)
  • NodeJs - Only needed if you want to compile the sdk into javascript or run the minified web client js code.

Included Projects

There are two solutions in the repository. The standalone webclient sln includes only the webclient implementation of the Html5sdk. The Html5sdk contains a sln which loads both the html5sdk AND the webclient. Opening the html5sdk sln enables you to compile the c# files into javascript, then run the webclient locally using the modified js output.

Getting Started

  • Decide which .sln you want to run (see above) and open in Visual Studio 2013 or higher.
  • Right-click webclient\default.aspx and point to View In Browser

To Enable grunt (LESS compilation, HTML5SDK Compilation, and JS Minification)

  • In a command prompt, navigate to the webclient root and type npm install to install grunt's dependencies. If you encounter any errors (I always do on a clean machine), ensure %USERPROFILE%\AppData\Roaming\npm exists (create it if not) and your system path includes ;%USERPROFILE%\AppData\Roaming\npm. You can run the ensurenpm.cmd to solve this.
  • Once you have installed the node_modules (via npm install above), install the grunt client. type npm install -g grunt-cli from the same command prompt.
  • If you do not have bower installed, run npm install -g bower
  • Run npm install to install dependencies
  • Run grunt watch from the same command prompt.
  • In a new command window run grunt bower:install to get the libraries the web client depends on (jquery, angular, bootstrap, etc.). You should see the watcher window detect the dependent libraries and run the 'vendor' grunt task
  • Disable any LESS compilers you might be using as visual studio extensions. Grunt watch will do everything for you.

Once you have completed the above you are set to make your own modifications to the code and your LESS and JS will be compiled/uglified. You can view the webclient by right-clicking webclient\default.aspx > view in browser.

To make changes to the HTML5 SDK, simply compile the html5sdk project (named wwtlib) while the grunt watch thread is active. Grunt will take the js output and create the wwtsdk.js file. To use this file instead of the production file, add ?debug=local to the query string.

Web client dependencies - further reading

AngularJS

If you are not familiar with Angular JS, I recommend taking some time to learn angularjs as this is a very heavy angular app.

Bootstrap

We also use the bootstrap library and compile our own less with the bootstrap less lib. We use their dropdowns, popovers, and modals quite a bit.

Angular-strap

We use the angular-strap directives library to integrate bootstrap components into angular.

ScriptSharp

We use ScriptSharp to compile the c# classes into javascript. We recently upgraded to ScriptSharp v0.8