Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Updated README to include Vagrant build

Mike McGann8c60e9a527a6
diff --git a/README.md b/README.md
index 20b56a0c2..67834e24f 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,9 @@ several other clients. We encourage interested developers to build their own
clients or integrate NASA imagery into their existing ones using these
services.
+*Please Note:* Worldview is under active development. Features may be absent
+or broken until the next major release. The toolchain only works in a Mac OS X
+or a Linux environment at the moment.
## License
@@ -38,43 +41,53 @@ All Rights Reserved.
Licensed under the [NASA Open Source Agreement, Version 1.3](LICENSE.md).
+## Installation
-## Building
+These instructions install a development version of Worldview using a virtual
+machine. If you prefer to install locally on your computer, follow the
+directions in [Manual Setup](doc/manual_setup.md)
-*Please Note:* Worldivew is under active development. Features may be absent
-or broken until the next major release. The toolchain only works in a Mac OS X
-or a Linux environment at the moment.
+*Notes:* This has only been tested on Mac OS X. Let us know if this works in
+other environments.
+
+Install the following:
+
+* [VirutalBox](https://www.virtualbox.org)
+* [Vagrant](https://www.vagrantup.com)
-Download and install [Node.js](http://nodejs.org/) using the instructions on
-their site.
+Clone this repository:
-Executing the following script will download all dependencies and
-build the application:
+```bash
+git clone https://github.com/nasa-gibs/worldview.git
+cd worldview
+```
- ./wv-setup
+Select one of the following configuration repositories:
-*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.
+```bash
+# Official EOSDIS configurations
+git clone https://github.com/nasa-gibs/worldview-options-eosdis.git options
-The ``dist`` directory now contains a ``example-map.tar.bz2`` file which
-can be uploaded and unpacked to a web server.
+# Or a blank repository with only Corrected Reflectance and no branding
+git clone https://github.com/nasa-gibs/worldview-options-template.git options
+```
-To run Worldview from your local machine, execute the following script or
-follow the instructions in [Manual Setup](doc/manual_setup.md):
+Build the virtual machine with:
- ./wv-setup -d
+```bash
+vagrant up
+```
-Worldview should now be available at the following:
+After the command finishes, Worldview should be ready and available at
+one of 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.
+```bash
+# Official EOSDIS configurations
+http://localhost:8182/worldview
+# Blank repository
+http://localhost:8182/example-map
+```
## Other Information
diff --git a/doc/manual_setup.md b/doc/manual_setup.md
index c1ec906f3..b8812d638 100644
--- a/doc/manual_setup.md
+++ b/doc/manual_setup.md
@@ -1,65 +1,57 @@
# Manual Setup
-Download and install [Node.js](http://nodejs.org/) using the intructions on
+Download and install [Node.js](http://nodejs.org/) using the instructions on
their site.
+Clone this repository:
+
+```bash
+git clone https://github.com/nasa-gibs/worldview.git
+cd worldview
+```
+
+Select one of the following configuration repositories:
+
+```bash
+# Official EOSDIS configurations
+git clone https://github.com/nasa-gibs/worldview-options-eosdis.git options
+
+# Or a blank repository with only Corrected Reflectance and no branding
+git clone https://github.com/nasa-gibs/worldview-options-template.git options
+```
+
Now install a global version of [grunt](http://gruntjs.com/) using the
following command:
- sudo npm install --global grunt-cli
+```bash
+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:
+Install the packages required for building:
- npm install
+```bash
+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
+```bash
+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-eosdis/{config,colormaps,config.json} options
+```bash
+virtualenv python
+python/bin/pip install xmltodict
+```
Start the build with:
- grunt
+```bash
+grunt
+```
-The ``dist`` directory now contains a ``example-map.tar.bz2`` file which
+The ``dist`` directory now contains ``site`` tar files that can be
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.