Add info about the project here
- Clone this repository
- Create .env and add
MONGO_URI=<MongoDB URI> - Run
npm i;npm run initto initialize database - Restart API with
npm run start
- Clone this repository
- Add
MONGO_URIas an environment variable - Run
npm run deployto start API
/publishers - List of data set publishers
/search - Search database for term
QUERY PARAMETERS
(required) ?query=term - Regex search for term
(optional) ?property=title - Search by property name specified in data.gov metadata schema https://resources.data.gov/resources/dcat-us/
(optional) ?limit=100 - Number of results returned
(optional) ?offset=0 - Pagination tool for search results, offset number of entries
RETURN
{
data: [{
title: String,
description: String,
theme: [String],
keyword: [String],
modified: Date,
bureauCode: [String],
programCode: [String],
accessLevel: String,
landingPage: String,
issued: Date,
publisher: String,
}]
query: String,
property: String,
offset: Number,
limit: Number,
total: Number // Number of total entries
}
EXAMPLE
https://nasadata.herokuapp.com/search?query=apollo%20program&property=description&limit=3
GitHub pages: https://nasaspaceapps2.github.io/data-visualizations/frontend/index.html
Replit: https://nasa-hackathon.martinmt0207.repl.co