nickxbs / astro

This NodeJS app is an API serving Solar System planet coordinates, computed for a defined Time of Interest, using A. Möller's astronomy-bundle package.

Home Page:https://astro6.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This API is serving Heliocentric planet coordinates computed for a specific Time of Interest

It uses the astronomy-bundle package by Andreas Möller. Since it is written in Typescript with ES6 syntax, the use of an ECMA-module loader like ESM is required (or a transpiler like babel).

This nodeJS app is running on free dynos on Heroku at https://astro6.herokuapp.com. It doesn't require credentials.

Running locally

To run your own instalment of the app, type in terminal:

npm start 

OR

node -r esm app-axios.js

Your HTML interface is running on port 3000

Querying the API from another

When the app is running, POST requests can be sent to the API as in the fetch() example included here.

About

This NodeJS app is an API serving Solar System planet coordinates, computed for a defined Time of Interest, using A. Möller's astronomy-bundle package.

https://astro6.herokuapp.com/


Languages

Language:JavaScript 86.2%Language:HTML 13.5%Language:Shell 0.2%Language:Procfile 0.1%