This is the core code repository for Earthdata Pub (EDPub).
See CONTRIBUTING.md
for instruction for contributing to
the EDPub project. Be sure to read that before submitting pull requests.
Also see TROUBLESHOOTING.md
.
EDPub consists of an API application, three front-end applications (overview, dashboard, and forms), extension modules, and a file upload module.
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.
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**