Sky.rb 
Context
Rails-based API providing data about bright stars, contellations, Messier and NGC objects, and Solar system major bodies.
Sources
- HYG Database
vendor/hygdata_v3.csvcomes from astronexus/HYG-Database - Constellation star mapping
vendor/constellations/constellationships.datcomes from Stellarium/stellarium - NGC
vendor/ngc.csvcomes from mattiaverga/OpenNGC
[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 OpenNGCCI
Test
$ bundle e rails db:prepare
$ bundle e rspec