-
Notifications
You must be signed in to change notification settings - Fork 0
WC_Getting Started
This guide shows you how to get the code for the WWT Web Client, and set up a computer for development. The WWT Web Client source code includes the code for the main WWT site (hosted at worldwidetelescope.com), as well as the WWT Web Client itself.
- Visual Studio (2013 or greater)
- .NET Framework 4.5.1
- AngularJS
- LESS CSS Preprocessor
- Grunt
-
Fork the openwwt-web-client repo from GitHub.
-
Clone the fork (copies files to your local Git folder).
git clone https://github.com/<username>/openwwt-web-client.git
For more details, see Developer Guidelines.
- In Visual Studio, navigate to the
openwwt-web-client\webclient
directory and openwebclient.sln
. - Right-click
Default.aspx
and select View in Browser.
Follow these steps to set up the Web Client on IIS. Note that the WWT Web Client must be mapped to the root of the IIS site, otherwise it will not function properly.
-
Open IIS.
-
Under Connections, right-click Sites and select Add Website....
-
Under Site name enter a name. For this example we will call it
openwwt-web-client
. -
Under Physical path enter the path to the
openwwt-web-client\webclient
folder of the WorldWide Telescope source on your local computer. For example:C:\GitHub\openwwt-web-client
. -
Optionally, enter a different port number under Binding (the default is
80
). -
In IIS, Right-click the
openwwt-web-client
node, then select Edit Permissions.... -
Select the Security tab.
-
Under Group or user names click Edit....
-
Click Add.
-
In the Select Users, Computers, Service Accounts, or Groups dialog, enter
<your computer name>\IIS_IUSRS
, then click OK. -
Under Permissions for IIS_IUSRS, make sure Read & execute, List folder contents, and Read are selected.
-
Click OK to close the Permissions dialog.
-
Click OK again to close the Web Properties dialog.
-
In IIS, under IIS, double-click Authentication.
-
Right-click Anonymous Authentication, then click Edit.
-
Select Application pool identity, then click OK.
To preview the site, click *Browse :80 (or whatever your port number is).
For debugging, we recommend using the development tools available in your browser:
- Internet Explorer: Using the F12 Developer Tools
- Chrome: Chrome Developer Tools
- Firefox: Firebug
For more information, see Debugging the Web Client.
The Web Client project uses Grunt to monitor and compile changes to JavaScript and CSS files. Whenever a change is made to a JavaScript or CSS file, Grunt detects and automatically compiles your changes.
First you'll need to install Grunt if you have not already done so.
- Open a command prompt.
- Navigate to
\openwwt-web-client\bootstrap
. - Type
npm install
and hit enter. This will install Grunt.
Once Grunt is installed, use it as shown here:
- Open a command prompt and navigate to
\openwwt-web-client\bootstrap
.- To monitor files:
grunt watch
. To stop monitoring, typeCTRL+C
. - To build everything at once:
grunt dist
.
- To monitor files:
For more information, see Grunt documentation.