backend
- Points 1 - 7 have been implemented.
- Tests for
hazardous
andfastest
APIs are implemented, placed in ./server/tests directory. - An additional route
/get-initial-data
is there to run the command to load initial data. - Another route
neo/all
is added to get all the NEOs in DB.
- Clone this repo.
- cd to
backend
. - Have mongodb installed and running, port can be set in ./config/config.js.
- Run
npm install
in order to install dependencies. - Run
npm start
to start the dev server. - Make a GET call to
/get-initial-data
to fetch last 3 days data from the NASA API and store it to mongoDB. - Run
npm test
to run tests.