GitHunt
RH

Sky.rb specs

Context

Rails-based API providing data about bright stars, contellations, Messier and NGC objects, and Solar system major bodies.

Sources

[Currently in active development]

Requirements

  • Ruby 2.7.1
  • Rails 6
  • PostgreSQL ~11

Initialization

$ bundle e rails db:prepare
# bundle e rails c

Sky::Constellations.new.load!  # Loads constellations
Sky::HygDatabase.new.load!     # Loads stars from HYG database
Sky::Asterisms.new.load!       # Loads constellation asterisms
Sky::Ngc::ProcessData.process! # Processes OpenNGC data source to clean it
Sky::Ngc::Import.new.load!     # Imports dark sky objects from OpenNGC

CI

Project's Github Actions

Test

$ bundle e rails db:prepare
$ bundle e rspec

Languages

Ruby99.6%HTML0.4%

Contributors

Created June 28, 2020
Updated September 6, 2020
rhannequin/skyrb | GitHunt