All Projects → nasa → Earthdata Search

nasa / Earthdata Search

Licence: other
Earthdata Search is a web application developed by NASA EOSDIS to enable data discovery, search, comparison, visualization, and access across EOSDIS' Earth Science data holdings.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Earthdata Search

Pool
🚌 A golang general network connection poolction pool
Stars: ✭ 588 (-2.33%)
Mutual labels:  hacktoberfest
Sp Dev List Formatting
SharePoint List Formatting Samples
Stars: ✭ 594 (-1.33%)
Mutual labels:  hacktoberfest
Core
Simple forum software for building great communities.
Stars: ✭ 5,372 (+792.36%)
Mutual labels:  hacktoberfest
Platform
Ushahidi Platform API version 3+
Stars: ✭ 587 (-2.49%)
Mutual labels:  hacktoberfest
Saleor Storefront
A GraphQL-powered, PWA, single-page application storefront for Saleor.
Stars: ✭ 591 (-1.83%)
Mutual labels:  hacktoberfest
Memento
Simple + Powerful interface to the Mnesia Distributed Database 💾
Stars: ✭ 597 (-0.83%)
Mutual labels:  hacktoberfest
Learn Graphql
Real world GraphQL tutorials for frontend developers with deadlines!
Stars: ✭ 586 (-2.66%)
Mutual labels:  hacktoberfest
Bookreader
The Internet Archive BookReader
Stars: ✭ 596 (-1%)
Mutual labels:  hacktoberfest
Authpass
AuthPass - Password Manager based on Flutter for all platforms. Keepass 2.x (kdbx 3.x) compatible.
Stars: ✭ 591 (-1.83%)
Mutual labels:  hacktoberfest
Graphite Web
A highly scalable real-time graphing system
Stars: ✭ 5,384 (+794.35%)
Mutual labels:  hacktoberfest
Stash
An organizer for your porn, written in Go
Stars: ✭ 591 (-1.83%)
Mutual labels:  hacktoberfest
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (-1.66%)
Mutual labels:  hacktoberfest
Homebrewery
Create authentic looking D&D homebrews using only markdown
Stars: ✭ 598 (-0.66%)
Mutual labels:  hacktoberfest
Rustfix
Automatically apply the suggestions made by rustc
Stars: ✭ 586 (-2.66%)
Mutual labels:  hacktoberfest
Xamarin.forms
Xamarin.Forms Official Home
Stars: ✭ 5,485 (+811.13%)
Mutual labels:  hacktoberfest
Cardview
CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
Stars: ✭ 587 (-2.49%)
Mutual labels:  hacktoberfest
Yupe
Yupe! is an open source Yiiframework-based online e-commerce solution. Demo https://demo.yupe.ru/
Stars: ✭ 596 (-1%)
Mutual labels:  hacktoberfest
Materialdialog Android
📱Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily.
Stars: ✭ 602 (+0%)
Mutual labels:  hacktoberfest
Runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
Stars: ✭ 7,742 (+1186.05%)
Mutual labels:  hacktoberfest
Cordova Js
Apache Cordova JavaScript Bridge
Stars: ✭ 598 (-0.66%)
Mutual labels:  hacktoberfest

Earthdata Search

serverless Build Status codecov Known Vulnerabilities

About

Earthdata Search is a web application developed by NASA EOSDIS to enable data discovery, search, comparison, visualization, and access across EOSDIS' Earth Science data holdings. It builds upon several public-facing services provided by EOSDIS, including the Common Metadata Repository (CMR) for data discovery and access, EOSDIS User Registration System (URS) authentication, the Global Imagery Browse Services (GIBS) for visualization, and a number of OPeNDAP services hosted by data providers.

License

Copyright © 2007-2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Application Installation and Usage

The Earthdata Search application uses Node v12.16.3 and Webpack 4.39.3 to generate static assets. The serverless application utilizes the following AWS services (important to note if deploying to an AWS environment):

  • S3
    • We highly recommend using CloudFront in front of S3.
  • SQS
  • API Gateway
  • Lambda
  • Cloudwatch (Events)

Prerequisites

Node

Earthdata Search runs on Node.js, in order to run the application you'll need to install it.

Recommended: Use Homebrew

brew install node
NPM

npm is a separate project from Node.js, and tends to update more frequently. As a result, even if you’ve just downloaded Node.js (and therefore npm), you’ll probably need to update your npm. Luckily, npm knows how to update itself! To update your npm, type this into your terminal:

npm install -g [email protected]
NVM

To ensure that you're using the correct version of Node it is recommended that you use Node Version Manager. Installation instructions can be found on the repository. The version used is defined in .nvmrc and will be used automatically if NVM is configured correctly.

Serverless Framework

Earthdata Search utilizes the Serverless Framework for managing AWS resources. In order to fully run and manage the application you'll need to install it:

npm install -g [email protected]
PostgreSQL

Earthdata Search uses PostgreSQL in production on AWS RDS. If you don't already have it installed, download and install it to your development environment.

Recommended: Use Homebrew

brew install postgresql

If you decide to install via Homebrew you'll need to create the default user.

/usr/local/opt/postgres/bin/createuser -s postgres

Initial Setup

Package Installation

Once npm is installed locally, you need to download the dependencies by executing the command below in the project root directory:

npm install
Configuration
Secrets

For local development Earthdata Search uses a json configuration file to store secure files, an example is provided and should be copied and completed before attempting to go any further.

cp secret.config.json.example secret.config.json

In order to operate against a local database this file will need dbUsername and dbPassword values set (you may need to update dbHost, dbName or dbPort in static.config.json if you have custom configuration locally)

Public (Non-Secure)

Non-secure values are stored in static.config.json. In order to prevent conflicts amongst developers you copy the static config into overrideStatic.config.json and change the config values there. Do not commit changes to static.config.json.

cp static.config.json overrideStatic.config.json
Database Migration

Ensure that you have a database created:

createdb edsc_dev

Our database migrations run within Lambda due to the fact that in non-development environments our resources are not publicly accessible. To run the migrations you'll need to invoke the Lambda:

serverless invoke local --function migrateDatabase

Building the Application

The production build of the application will be output in the /static/dist/ directory:

npm run build

Run the Application Locally

The local development environment for the static assets can be started by executing the command below in the project root directory:

npm run start

This will run the React application at http://localhost:8080 -- please see Serverless Framework below for enabling the 'server' side functionality.

Serverless Framework

The serverless framework offers many plugins which allow for local development utilizing many of the services AWS offers. For the most part we only need API Gateway and Lambda for this application but there are plugins for many more services (a list of known exceptions will be maintained below).

Exceptions
  • SQS

    While there is an sqs-offline plugin for serverless it still requires an actual queue be running, we may investigate this in the future but for now sqs functionality isn't available while developing locally which means the following pieces of functionality will not operate locally:

    • Generating Colormaps

Running API Gateway and Lambda Locally

Running the following command will spin up API Gateway and Lambda locally which will open up a vast majority of the functionality the backend offers.

serverless offline

This will provide access to API Gateway at http://localhost:3001

Additionally, this ties in with the serverless webpack plugin which will ensure that your lambdas are re-built when changes are detected.

Run the Automated Jest tests

Once the project is built, you must ensure that the automated unit tests pass:

npm run test

Run the Automated Cypress tests

You must also ensure that the automated integration tests pass:

npm run cypress:run

You can also use the Cypress GUI with:

npm run cypress:open
Configuration
Cypress Secrets

When adding new Cypress tests, you will need to modify the secrets.config.json file. You will need to edit the "cypress" object to include data from your local database:

"cypress": {
    "user": {
    "id": 1, // This should match the ID of your user in the 'users' database table
    "username": "your username here" // Replace with the urs_id field of your user in the 'users' database table
    }
}

Deployment

When the time comes to deploy the application, first ensure that you have the required ENV vars set:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

This application runs in a VPC for NASA security purposes, therefore the following values are expected when a deployment occurs:

  • VPC_ID
  • SUBNET_ID_A
  • SUBNET_ID_B

For production use, this application uses Scatter Swap to obfuscate some IDs -- the library does not require a value be provided but if you'd like to control it you can set the following ENV vars:

  • OBFUSCATION_SPIN
  • OBFUSCATION_SPIN_SHAPEFILES

To deploy the full application use the following:

NODE_ENV=production serverless deploy --stage UNIQUE_STAGE
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].