-
Notifications
You must be signed in to change notification settings - Fork 265
Filling the Database
-
Download our media database dump
-
Import the dump to your database:
gzcat anime.sql.gz | bin/psql hummingbird_development
-
Set up Elasticsearch:
bin/rake chewy:reset`
Run the following to create the database and load structure.sql into it to get started:
$ bundle exec rake db:create db:structure:load
Create an account with one of the staff emails. The confirmation email should be automatically opened in your default browser; if this fails, you can find it in tmp/letter_opener
.
Go to /kotodama
and enter id numbers from MyAnimeList into the "MAL Import" section to have them created automatically. Some of the ones with lots of characters and voice actors may time out: if this happens, you can use bundle exec rails console
and run the following:
require 'mal_import'
Anime.create_or_update_from_hash MALImport.new(:anime, 123456).metadata
If you want to import Manga, replace all the "anime" with "manga" in that line.
Go to /kotodama/rails_admin
. This will let you edit the database directly.
General
› Contributing
› License
Local Setup
› Docker
› Binstubs
› Filling the Database
API Usage
› JSON:API (on Apiary.io)
› JSON:API (WIP rewrite of docs)
› GraphQL (Pre-Production)