Files
national-parks-api/README.md
2025-10-08 01:44:23 -07:00

557 B

National Parks Demo App

Prerequisites

  • Ruby 3.4.7
  • Bundler
  • Set NPS_API_KEY env var

Deps

  • Ruby 3.4.7
  • Rails 8.0.3
  • SQLite

Getting started

bundle install
bin/rails db:prepare
bin/rails server

Testing

bin/rspec

TODO

  • What additional cols to add to parks model?
  • Order results on index actions
  • Return total pages for index actions
  • index states for efficient search?
    • full text search in sqlite?
    • normalize state on a separate table?
    • With postgres I would use a states:array col and gin index