GeoGateway / geogateway-portal

http://geo-gateway.org
Apache License 2.0
2 stars 1 forks source link
earthquake gps-data science-gateways uavsar

This is the GeoGateway project. To install, you need to first install the NPM package manager, Node.js, Git, and MongoDB. MongoDB's default data directory is /data/db, so either make this directory and give it the correct permissions or else change the data directory. You may already have Git installed. Just type "git" at the command line to see.

INSTALLATION Run the following commands at the shell prompt:

RUNNING THE SERVICE Run the following commands

USING THE INTERFACE Point your browser to http://localhost:3000/main.html

UPDATING THIRD PARTY DEPENDENCIES To keep libraries up to date, periodically run the following:

ENABLE HTTPS

const https=require('https');
const certoptions = {
  key: fs.readFileSync("/cert/privkey.pem"),
  cert: fs.readFileSync("/cert/fullchain.pem")
};

https.createServer(certoptions, app).listen(app.get('port'),function() {
     console.log('Listening...');
})