Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Oct 6, 2020
1 parent effa54f commit 6429276
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,23 @@ Spatial Data Infrastructure for Planetary Missions

1. Install the latest version of [Node.js v10.10+](https://nodejs.org/en/download/).

1. Install [PostgreSQL v9.6+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads)
1. And do so with the [PostGIS 2.5+](https://postgis.net/install/) extension enabled.
Agree to any possible postgis installions in the gui or run `CREATE EXTENSION postgis;` afterwards.
1. Install [PostgreSQL v10.14+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Detailed [install instructions](https://www.postgresqltutorial.com/postgresql-getting-started/) for all platforms.
1. Install [PostGIS 2.5+](https://postgis.net/install/). From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default [PostGIS install instructions](https://postgis.net/install/) for all platforms.
1. Make a new PostgreSQL database and remember the user, password and database name.

Use 'pgsl' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.

Issue the following commands:
`CREATE DATABASE mmgis;`
`\c mmgis`
`CREATE EXTENSION postgis;`
`exit`
In the above `\c` attaches to the database and `CREATE EXTENSION` enables PostGIS by creating a spatial reference table within that database.

1. PHP, GDAL and Python2 are weaker dependencies (without them not everything will work)

- PHP 5.4.16+ \* php-pdo php-mysqli pdo_sqlite modules enabled
- GDAL 2.0.2 or 1.11.4 with Python bindings
- Python 2.75+

Possible commands to install them all:
`apt-get update`
`apt-get install -y php7.0-cli php-db php-sqlite3 gdal-bin libgdal-dev python-pip python-gdal`
- PHP [7+](https://www.php.net/downloads.php) \* php-pdo php-mysqli pdo_sqlite modules enabled
- GDAL [2.+](https://gdal.org/download.html) with Python bindings
- Python [2.7.18](https://www.python.org/downloads/release/python-2718/)

### Setup

Expand Down Expand Up @@ -61,8 +64,14 @@ Spatial Data Infrastructure for Planetary Missions
DB_USER=<user>
DB_PASS=<password>
```

1. Within `/` run `npm start`
From the install example:
```
DB_NAME=mmgis
DB_USER=postgres
DB_PASS=<password>
```

1. Within the MMGIS install folder, run `npm start`

- If you get errors, try running `npm start` a few times. Also make sure you ran `CREATE EXTENSION postgis;` on your database.

Expand Down

0 comments on commit 6429276

Please sign in to comment.