Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Documentation updates

Mike McGannabb82b8689ce
diff --git a/.gitignore b/.gitignore
index 67bb75037..6c65cbde4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,6 @@ python
.pydevproject
.DS_Store
bitly_config.py*
-doc
tools
*~
*.swp
diff --git a/README.md b/README.md
index 770dd5e75..8d9bb4f2d 100644
--- a/README.md
+++ b/README.md
@@ -48,38 +48,39 @@ or a Linux environment at the moment.
Download and install [Node.js](http://nodejs.org/) using the intructions on
their site.
-Now install a global version of [grunt](http://gruntjs.com/) using the
-following command:
+Executing the following script will download all dependencies and
+build the application:
- sudo npm install --global grunt-cli
+ ./wv-setup
-Clone a copy of the Worldview repository and change to the ``worldview`` directory.
-Now install the packages required for building:
+*Note*: Some steps require root privileges and you may be prompted for the
+root password. If you do not trust the script to perform administrative
+tasks on your behalf, either review the script before execution, or follow
+the [Manual Setup](doc/manual_setup.md) steps.
- npm install
-
-Some python libraries are required. Install virtualenv to keep additional
-libraries installed in a local directory:
-
- sudo easy_install virtualenv==1.10.1
-
-Run the following script to install:
+The ``dist`` directory now contains a ``example-map.tar.bz2`` file which
+can be uploaded and unpacked to a web server.
- ./python_install
+To run Worldview from your local machine, execute the following script or
+follow the instructions in [Manual Setup](doc/manual_setup.md):
-Start the build with:
+*Note*: This only works on OS X at the moment.
- grunt
+ ./wv-setup -d
-The ``dist`` directory now contains a ``worldview.tar.bz2`` file which
-can be uploaded and unpacked to a web server.
+Worldview should now be available at the following:
-*Please Note:* To run Worldview from your local machine, you will need to
-follow the instructions in [Development Notes](doc/developing.md).
+* [http://localhost/example-map](http://localhost/example-map): Uses the source
+directory
+* [http://localhost/example-map-debug](http://localhost/example-map-debug):
+Uses the debug version (non-minified versions) found in the build directory.
+* [http://localhost/example-map-release](http://localhost/example-map-release):
+Uses the release version (minified versions) found in the build directory.
## Other Information
+* [Manual Setup](doc/manual_setup.md)
* [Branding](doc/branding.md)
* [Optional Features](doc/features.md)
* [Development Notes](doc/developing.md)
diff --git a/doc/branding.md b/doc/branding.md
index 66806538b..d1b67644b 100644
--- a/doc/branding.md
+++ b/doc/branding.md
@@ -2,45 +2,42 @@
By default, the build process will:
-* Name the application "My Map"
+* Name the application "Example Map"
* Not provide a logo in the upper left hand corner
* Contain an "About" page with only the version and name of the application.
* Have a default support email address of [email protected]
## Customizing
-To customize, copy the default branding directory to another directory
-and make changes there. For example:
+Customization is easy as modifying or changing some files in the ``options``
+directory.
- cp -R etc/brand.default etc/brand.custom
-
-*Please Note*: Additional brand directories are in the ``.gitignore`` file
+*Please Note*: The ``options`` directory is contained in the ``.gitignore`` file
so that you can make a separate repository for the customizations.
-Now edit the ``etc/brand.custom/brand/options.json`` file and make changes
-as necessary using the guidance below:
+Edit the ``optoins/brand.json`` file and make changes as necessary using the
+guidance below:
* ``packageName``: Name used to create tar files, base directories and web
-roots (e.g, supermap)
+roots (e.g., supermap)
+* ``name``: Name of the application presented to the end users (e.g.,
+Super Map of the World)
+* ``email``: Email address that should be presented to the end user for
+support requests.
+
+Naming can be more specific by omitting the ``name`` property and using
+the following instead:
+
* ``officalName``: Name of the application when used in a formal setting
(e.g, TLA's Super Map of the World)
-* ``longName``: Full, but not offical, name of the application (e.g. Super
+* ``longName``: Full, but not official, name of the application (e.g. Super
Map of the World)
* ``shortName``: Abbreviated, short name of the application (e.g. Super Map)
-* ``version``: Version of the application suitible for display to an
-end user.
-* ``release``: Used to mark a new revision when the version number should
-not be changed.
-* ``support``: Email address that should be presented to the end user for
-support requests.
-
-The ``url`` and ``description`` fields are used for generating the
-documentation and don't need to be changed.
To add a logo, replace the following file with an image that is 247 pixels by
45 pixels:
- etc/brand.custom/src/images/brand/wv-logo.png
+ options/brand/images/wv-logo.png
To create an "About" page, edit the following file:
@@ -57,6 +54,3 @@ the following commands at the root of the repository:
Build again and the customizations should now be incldued:
grunt
-
-
-
diff --git a/doc/developing.md b/doc/developing.md
index 5663f7e69..b05b9aab8 100644
--- a/doc/developing.md
+++ b/doc/developing.md
@@ -3,35 +3,6 @@
*Please Note*: There is litte to no documentation at ths time and any
comments in the code may be out of date.
-### Web Server Configuration
-
-Worldview must be accessed via a web server to properly work. To generate
-a configuration file for use with Apache, execute the following:
-
- grunt apache-config
-
-A ``.conf`` file will be placed in the ``dist`` directory. As root, copy
-this file to the Apache configuration directory:
-
-* Mac OS X: /private/etc/apache2/other
-* RHEL/CentOS: /etc/httpd/conf.d
-
-Restart Apache:
-
-* Mac OS X: ``sudo apachectl restart``
-* RHEL/CentOS: ``sudo service httpd restart``
-
-Worldview should now be available at the following:
-
-* [http://localhost/worldview](http://localhost/worldview): Uses the source
-directory
-* [http://localhost/worldview-debug](http://localhost/worldview-debug):
-Uses the debug version (non-minified versions) found in the build directory.
-* [http://localhost/worldview-release](http://localhost/worldview-release):
-Uses the release version (minified versions) found in the build directory.
-* [http://localhost/worldview-doc](http://localhost/worldview-doc)
-
-
### Minification of CSS and JavaScript files
The build script needs to know which files to minify and the correct order used
diff --git a/doc/manual_setup.md b/doc/manual_setup.md
new file mode 100644
index 000000000..d4cf07cfb
--- /dev/null
+++ b/doc/manual_setup.md
@@ -0,0 +1,65 @@
+# Manual Setup
+
+Download and install [Node.js](http://nodejs.org/) using the intructions on
+their site.
+
+Now install a global version of [grunt](http://gruntjs.com/) using the
+following command:
+
+ sudo npm install --global grunt-cli
+
+Clone a copy of the Worldview repository and change to the ``worldview`` directory.
+Now install the packages required for building:
+
+ npm install
+
+Some python libraries are required. Install virtualenv to keep additional
+libraries installed in a local directory:
+
+ sudo easy_install virtualenv==1.10.1
+
+Setup a virtualenv and install dependencies:
+
+ virtualenv python
+ python/bin/pip install xmltodict
+
+Clone a copy of the generic branding and configuration option set:
+
+ git clone https://github.com/nasa-gibs/worldview-options-template.git options
+
+The default option set only contains three layers. If you would like to
+use the same configuration as the main Worldview application, clone that
+option set and copy out the necessary configurations:
+
+ mkdir -p build
+ git clone https://github.com/nasa-gibs/worldview-options-eosdis.git build/options-eosdis
+ cp -r build/options-eosds/{config,colormaps,config.json} options
+
+Start the build with:
+
+ grunt
+
+The ``dist`` directory now contains a ``example-map.tar.bz2`` file which
+can be uploaded and unpacked to a web server.
+
+On OS X, to run Worldview on your local machine using apache, generate
+the configuration with:
+
+ grunt apache-config
+
+Now copy the file to the apache configuration directory:
+
+ sudo cp dist/example-map-dev.httpd.conf /etc/apache2/other
+
+Restart apache:
+
+ sudo apachectl restart
+
+Worldview should now be available at the following:
+
+* [http://localhost/example-map](http://localhost/example-map): Uses the source
+directory
+* [http://localhost/example-map-debug](http://localhost/example-map-debug):
+Uses the debug version (non-minified versions) found in the build directory.
+* [http://localhost/example-map-release](http://localhost/example-map-release):
+Uses the release version (minified versions) found in the build directory.