Earth-Observation-System
A system for alerting users to local and regional disasters using the NASA EONET API.
Instead of using Twitter to send an alert, could use a web crawler to attach a news article about each disaster from ap news or reuters. Less interconnectivity but still quite impressive. Maybe moreso, though less functional as an alert. Users have to check the site. But then I can remove MongoDB and Twitter. Faster project.
https://apnews.com/hub/us-news
Getting Started
- Fork or Clone repository
- install dependencies with
npm install
- create file
.env
in the root directory
- inside
.env
, copy-paste the code from .env-sample
and replace value with your API key from https://api.nasa.gov/
- run with
npm start
- navigate to
http://localhost:3000/
Setting Up Database
Dependencies
- Express - A lightweight, Node.js backend framework.
- NASA's Earth Observatory Natural Event Tracker (EONET) API - NASA API with data on currnet natural disasters.
- Pug - An HTML templating library.
- Request
- Axios - Promise based HTTP client for the browser and node.js.
- Helmet - Helps secure Express apps.
- Mongoose - ODM for communicating with MongoDB.
- Luxon - Converts Date strings into a more readable form.
- [MongoDB]()
- [Dotenv]()
- Twit - a library for interacting with the Twitter API.
- CORS - enables cross-origin routing between frontend and backend.
Helpful Links