Skip to content

eosdis-nasa/earthdata-pub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Earthdata Pub

This is the core code repository for Earthdata Pub (EDPub).

Contributing

See CONTRIBUTING.md for instruction for contributing to the EDPub project. Be sure to read that before submitting pull requests.

Also see TROUBLESHOOTING.md.

Organization

EDPub consists of an API application, three front-end applications (overview, dashboard, and forms), extension modules, and a file upload module.

Building and running locally

Install the node version specified in .nvmrc to build and run EDPub locally. We recommend using NVM to install and manage node versions.

Clone the main EDPub repos.

git clone git@github.com:eosdis-nasa/earthdata-pub-api.git
git clone git@github.com:eosdis-nasa/earthdata-pub-overview.git
git clone git@github.com:eosdis-nasa/earthdata-pub-dashboard.git
git clone git@github.com:eosdis-nasa/earthdata-pub-forms.git
git clone git@github.com:eosdis-nasa/earthdata-pub-modules.git
git clone git@github.com:eosdis-nasa/earthdata-pub-upload.git

VPNs and work networks can prevent ssh cloning. If you are required to use VPN, clone over http, for example: https://github.com/eosdis-nasa/earthdata-pub-overview.git

Install, build, and run using npm.

nvm use
cd ../earthdata-pub-api
npm install
npm run build:local
cd ../earthdata-pub-upload
npm install
cd ../earthdata-pub-dashboard
npm install
cd ../earthdata-pub-forms
npm install
cd ../earthdata-pub-overview
npm install
npm run start-dev

Applications should be available at:

Application URL
API http://localhost:8080
Dashboard http://localhost:3000
Forms http://localhost:8081
Overview http://localhost:8082

The Overview picks the next highest port, so the port may be different.

Open source release

During the open source approval process, EDPub was required to submit a zipped code base. To create that zip, use this command in the directory above the earthdata-pub repos:

zip -r earthdata-pub/edpub-1.0.0.zip . -x */\.* *.git* \.* *.zip *.bak *.swp *.back *.merge **/node_modules/**\* **/bower_components/**\* **/dist/**.* **earthdata-pub**