Apigator9999 is the back-end service of agator9999, a personal music library aggregator. This API is built with Ruby on Rails, with a PostgreSQL database.
psql -U {pg user} -f postgresql_setup.txt
ruby bin/rails db:migrate
ruby bin/rails db:migrate RAILS_ENV=test
ruby bin/rails server
bundle exec rubocop
bundle exec rubocop -a # Autofix
In case you have been using the older version of Agator9999 with Firebase as a backend:
- Export your Firebase data to JSON
- Copy it to
firebase_dump.rb
- Run
rails runner <PATH_TO_FILE/migrate_data_from_firebase.rb>
For local development, add the REDIS_URL
in config/local_env.yml
. On production, the app uses rbenv-var
.
See doc/api.md
.