Spatial Data Infrastructure for Planetary Missions
/
will always refer to the repo's root directory
Clone the repogit clone https://github.com/NASA-AMMOS/MMGIS
From within /
npm install
To build the Docker image, run: docker build -t <image tag> .
Copy /sample.env
to .env
cp sample.env .env
Open .env
and update the following:
DB_NAME=<name>
DB_USER=<user>
DB_PASS=<password>
From the install example:
DB_NAME=db
DB_USER=postgres
DB_PASS=<POSTGRES_PASSWORD (see below)>
Set all the ENV variables in .env
. More information about the ENVs can be found here.
DB_NAME
to the name of the service (in this case db
)This repo contains a /docker-compose.sample.yml
file that defines a service for the application and a PostgreSQL database with PostGIS installed
docker-compose.yml
.db
service in docker-compose.yml
, set the POSTGRES_PASSWORD
environment variable and use this for MMGIS's DB_PASS
ENV value.environment
variables within the docker-compose.yml
as well.Missions
directory and copy the contents of ./Missions
to your directory./usr/src/app/Missions
in the container. For example, if the host directory is ./Missions
, the volume mapping would be - ./Missions:/usr/src/app/Missions
/docker-compose.sample.yml
includes optional STAC and TiTiler services. If any of them are unwanted, they can be removed from the docker-compose-yml and their respective .env
variable WITH_{service}
can be set to false.Run: docker-compose up -d
Setup the admin account:
http://localhost:8888/configure
Now sign in with you Administrator credentials
Click NEW MISSION
Enter a new mission name and click MAKE MISSION
Optional: (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 DockerInstall the latest version of Node.js v20.11.1+.
Install PostgreSQL v16+. Detailed install instructions for all platforms.
Install PostGIS 3+. From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default PostGIS install instructions for all platforms.
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.
Invoke-Expression ((Invoke-WebRequest -Uri https://micro.mamba.pm/install.ps1).Content)
micromamba shell init --shell cmd.exe --root-prefix=your\path\to\mamba
micromamba env create -y --name mmgis --file=python-environment.yml
..\mamba\condabin\micromamba"' is not recognized as an internal or external command, operable program or batch file.
, then copy the mamba.bat
file in that directory to micromamba.bat
micromamba run -n mmgis gdalinfo --version
npm start
micromamba activate mmgis
python -m pip install -r python-requirements.txt
PROJ_LIB
system ENV points to the proj.db install through python.python
only and not python3
or variations./
will always refer to the repo's root directory
Clone the repogit clone https://github.com/NASA-AMMOS/MMGIS
From within /
npm install
Copy /sample.env
to .env
cp sample.env .env
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>
Run npm run build
to bundle up the code (first time or if there are any changes)
Go into /configure and run npm install
followed by npm run build
to build the configuration site.
Go back to the root /
directory
Run micromamba activate mmgis
or python -m pip install -r python-requirements.txt
(if not using python environments)
If using adjacent-servers (titiler, stac, ...) make .env
files from the samples within the /adjacent-servers/{servers}/
directory.
Run npm run start:prod
Setup the admin account:
http://localhost:8888/configure
Now sign in with you Administrator credentials
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
)
Run npm run build
to bundle up the code (first time or if there are any changes)
Run micromamba activate mmgis
(if applicable)
Run npm run start:prod
Run micromamba activate mmgis
(if applicable)
Run npm start
npm run test
Additionally, documentation pages are served at http://localhost:8888/docs
or immediately within the docs/pages/markdowns
directory.
Check out our contributing guide here.
Check out our code of conduct here.
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.
Dr. Fred J. Calef III - fred.calef@jpl.nasa.gov
Tariq K. Soliman - tariq.k.soliman@jpl.nasa.gov
Or join us on Slack
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4