NASA-AMMOS / MMGIS

Multi-Mission Geographical Information System - Web-based Mapping and Spatial Data Infrastructure for Planetary Science Operations - https://nasa-ammos.github.io/MMGIS/
Apache License 2.0
139 stars 45 forks source link

MMGIS (Multi-Mission Geographic Information System)

Spatial Data Infrastructure for Planetary Missions

Example


Features


Full documentation


Installation


Installing with Docker

Building

To build the Docker image, run: docker build -t <image tag> .

Running

This repo contains a docker-compose.yml file that defines a service for the application and a PostgreSQL database with PostGIS installed

Run: docker-compose up

First Time UI Setup

  1. Setup the admin account:

    • In your browser, navigate to http://localhost:8888/configure
    • Sign up for an Administrator account (The Administrator account is always the first user in the database and you are only prompted to create an Administrator account if there are no other users)
  2. Now sign in with you Administrator credentials

  3. Click NEW MISSION
    Enter a new mission name and click MAKE MISSION
    Optiona;" (Use the mission name "Test" (case-sensitive) to make the sample mission)

Navigate to http://localhost:8888.

See the configuration documentation for more information on how to use the configure page to customize and add data to MMGIS.

Installing Without Docker

System Requirements

  1. Install the latest version of Node.js v20.11.1+.

  2. Install PostgreSQL v10.14+. Detailed install instructions for all platforms.

  3. Install PostGIS 2.5+. From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default PostGIS install instructions for all platforms.

  4. Make a new PostgreSQL database and remember the user, password and database name. Use 'psql' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.

  5. GDAL and Python are weaker dependencies (desirable but, without them, not everything will work)

    • GDAL 2.+ with Python bindings (Windows users may find these helpful)
    • Python 3.6+
      • python -m pip install numpy
      • Note: MMGIS expects and uses the command python only and not python3 or variations.

Setup

/ will always refer to the repo's root directory

  1. Clone the repo
    git clone https://github.com/NASA-AMMOS/MMGIS

  2. From within /
    npm install

  3. Copy /sample.env to .env
    cp sample.env .env

  4. Open .env and update the following:

    DB_NAME=<name>
    DB_USER=<user>
    DB_PASS=<password>

    From the install example:

    DB_NAME=mmgis
    DB_USER=postgres
    DB_PASS=<password>
  5. Run npm run build to bundle up the code (first time or if there are any changes)

  6. Go into /configure and run npm install followed by npm run build to build the beta configuration site.

  7. Go back to the root / directory

  8. Run npm run start:prod

  9. Setup the admin account:

    • In your browser, navigate to http://localhost:8888/configure
    • Sign up for an Administrator account (The Administrator account is always the first user in the database and you are only prompted to create an Administrator account if there are no other users)
  10. Now sign in with you Administrator credentials

  11. Click NEW MISSION
    Enter a new mission name and click MAKE MISSION
    (Use the mission name "Test" (case-sensitive) to make the sample mission)

Go to http://localhost:8888 to see the Test mission

Note: The development environment (npm start) and only the development environment uses two port numbers 8888 and 8889 (by default) — the latter for the main site and the former for the ancillary pages (such as /configure and /docs)


Scripts

Production

  1. Run npm run build to bundle up the code (first time or if there are any changes)

  2. Run npm run start:prod

Development

  1. Run npm start

Test

  1. Run npm run test
    Note: Jest has just been added in v2.0.0 and test suites are still very limited. There is strong interest to move to Playwright.

Documentation

The latest online documentation can be found here.

Additionally, documentation pages are served at http://localhost:8888/docs or immediately within the docs/pages/markdowns directory.


Contributing

Check out our contributing guide here.


Code of Conduct

Check out our code of conduct here.


License: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)

Copyright (c) 2024, California Institute of Technology ("Caltech"). U.S. Government sponsorship acknowledged.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Contacts

Dr. Fred J. Calef III - fred.calef@jpl.nasa.gov
Tariq K. Soliman - tariq.k.soliman@jpl.nasa.gov