Skip to content

API service of agator9999 (PostgreSQL + Ruby on Rails)

Notifications You must be signed in to change notification settings

agatheblues/apigator9999

Repository files navigation

Apigator9999

About

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.

Setup the databases

psql -U {pg user} -f postgresql_setup.txt
ruby bin/rails db:migrate
ruby bin/rails db:migrate RAILS_ENV=test

Start the server

ruby bin/rails server

Format

bundle exec rubocop
bundle exec rubocop -a      # Autofix

Migrate data from Firebase

In case you have been using the older version of Agator9999 with Firebase as a backend:

  1. Export your Firebase data to JSON
  2. Copy it to firebase_dump.rb
  3. Run rails runner <PATH_TO_FILE/migrate_data_from_firebase.rb>

Sidekiq & Redis

For local development, add the REDIS_URL in config/local_env.yml. On production, the app uses rbenv-var.

API

See doc/api.md.

About

API service of agator9999 (PostgreSQL + Ruby on Rails)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published