Skip to content

NASA API integration to detect near earth asteroids

Notifications You must be signed in to change notification settings

riivanov/armageddon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run the API

This assumes you have NPM and Node installed.

  • If not download NVM.

As a conveniece the Linux commands for installing NVM/Node are provided. If you're using another OS please see the link above.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install --lts
nvm use --lts
node --version # 20.11.0
npm --version # 10.2.4
git clone https://github.com/riivanov/armageddon.git
cd armageddon
npm install
npm start

To test the API

If you want to make changes to the input of the request modify post.json, respectively.

If port 7891 happens to already be bound, you can modify the PORT variable in the file .env

To test the endpoint, from the project directory, you can use curl:

curl --json @post.json -X POST http://localhost:7891/

If you don't have curl, for example if you're on Windows, try Postman

About

NASA API integration to detect near earth asteroids

Resources

Stars

Watchers

Forks

Packages

No packages published