這是跟踪您在Ruby on Rails上寫的最終幻想XIV收藏的另一個應用程序。遊戲數據由Saint Coinach提供支持。該應用程序通過從Saint Coinach提取盡可能多的數據來努力盡可能自治。其餘的是我自己和一小群主持人使用社區來源的數據來維護的。
所有此應用程序的數據都可以通過RESTFUL JSON API提供。有關詳細信息,請參見文檔。
git clone --recurse-submodules https://github.com/mattantonelli/ffxiv-collect
cd ffxiv-collect
bundle install
bundle exec rake app:update:bin
創建MySQL數據庫ffxiv_collect_development
和ffxiv_collect_test
以及具有訪問它們的數據庫用戶
http://localhost:3000/users/auth/discord/callback
rm config/credentials.yml.enc
rails credentials:edit
mysql :
development :
username : username
password : password
discord :
client_id : 123456789
client_secret : abc123
通過按照數據存儲庫中的說明從遊戲數據中提取圖像和音樂樣本。
bundle exec rake db:schema:load
bundle exec rake data:initialize
whenever
運行以安排應用程序的cronjobs。
bundle exec whenever -s 'environment=INSERT_ENV_HERE' --update-crontab
請注意,如果您不使用RBENV安裝Ruby,則需要更改位於config/schedule.rb
中的捆綁包命令
rails server
bundle exec sidekiq -C config/sidekiq_character.yml
bundle exec sidekiq -C config/sidekiq_free_company.yml
當新數據在補丁日提供時,可以通過運行data:update
耙任務。
git submodule update --remote
bundle exec rake data:update
bundle exec rake assets:precompile
# Restart the application
bundle exec rails console
[Achievement, Mount, Minion, Orchestrion, Emote, Barding, Hairstyle, Armoire, Fashion, Facewear, Frame, Card, NPC].each { |model| puts "#{model}: #{model.where('created_at > ?', Date.current.beginning_of_day).update_all(patch: 'CURRENT PATCH')}" }
exit
一旦數據存儲庫已更新了最新的補丁數據,就可以使用此數據。
如果進行複雜的遊戲更新,可能需要採取更多操作。補丁數據必須手動填充。
圖像必須從遊戲數據中提取。單擊此處以獲取詳細信息。
《最終幻想》是Square Enix Holdings Co.,Ltd.的註冊商標。
最終幻想XIV©Square Enix Co。,Ltd。