Skip to content

A backend program built in the Deno runtime that returns SpaceX JSON launch data. 💫

License

Notifications You must be signed in to change notification settings

BernStrom/spaceX-launch-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceX Logo

SpaceX Launch Data

Launch data from an open-source SpaceX API by the subreddit community r/SpaceX

About

A mini-program built with Deno that returns a set of SpaceX launch data in a JSON string using the log module from Deno's standard library. Results of the launch data are set to flight numbers, mission name, rocket name and customer(s) name.

Installation

Note: Before running the program, please ensure you have Deno installed on your machine.

  1. Follow the installation instructions on the Deno offical website: https://deno.land/

  2. In your terminal, run: deno run --allow-net=api.spacexdata.com mod.ts

  3. You should see the program return back the launch data in a JSON string format:

     INFO {"flightNumber":103,"mission":"Starlink-12 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]}
     INFO {"flightNumber":104,"mission":"Starlink-13 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]}
     INFO {"flightNumber":105,"mission":"Starlink-14 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]}
     INFO {"flightNumber":106,"mission":"GPS III SV04 (Sacagawea)","rocket":"Falcon 9","customers":["United States Space Force"]}
     INFO {"flightNumber":107,"mission":"Crew-1","rocket":"Falcon 9","customers":["NASA (CCtCap)"]}
     INFO {"flightNumber":108,"mission":"Sentinel-6 Michael Freilich","rocket":"Falcon 9","customers":["NASA"]}
     INFO {"flightNumber":109,"mission":"Starlink-15 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]}
     INFO {"flightNumber":110,"mission":"CRS-21","rocket":"Falcon 9","customers":["NASA (CRS)"]}
     INFO {"flightNumber":110,"mission":"SXM-7","rocket":"Falcon 9","customers":["SiriusXM"]}
     INFO Downloaded data for 110 SpaceX launches 💫
    

📝 License License: MIT

This project is licensed under the terms of the MIT license. For more information, please refer to the license documentation.

⚠️ Disclaimer

This program uses an unofficial API that bares no official association, affiliation, authorization or endorsement of any kind to Space Exploration Technologies Corp (SpaceX) or any of its subsidiaries or its affiliates.

The contents of these pages are provided as an information guide only. While every effort is made in preparing the material for publication, no responsibility is accepted by or on behalf of the owner(s) for any errors, omissions or misleading statements on these pages or any site to which these pages connect. Although every effort is made to ensure the reliability of listed sites this cannot be taken as an endorsement of these sites.

About

A backend program built in the Deno runtime that returns SpaceX JSON launch data. 💫

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published