Collection tracking companion website for Final Fantasy XIV
This is a collection tracking companion website for Final Fantasy XIV collections written in Ruby on Rails. Game data is powered by XIVData Oxidizer. This application strives to be as autonomous as possible by pulling most of its information directly from the game data. The rest is maintained by myself and a small group of moderators using community-sourced data.
All of this application's data is made available through a RESTful JSON API. See the documentation for details.
git clone --recurse-submodules https://github.com/fae-industries/ffxiv-collect
cd ffxiv-collect
bundle install
Create the MySQL databases ffxiv_collect_development and ffxiv_collect_test as well as a database user with access to them
http://localhost:3000/users/auth/discord/callbackrm config/credentials.yml.enc
rails credentials:edit
mysql:
development:
username: username
password: password
discord:
client_id: 123456789
client_secret: abc123
google:
client_id: 234567891
client_secret: def456
xivauth:
client_id: 345678912
client_secret: ghi789
It is recommended to skip image generation. This is only required for Triple Triad and Framer's Kit images, and it can take a long time to complete.
bin/rake db:schema:load
SKIP_IMAGES=1 bin/rake data:initialize
Please note that collection records without patch data are not rendered. You can set a placeholder patch to make them visible using the console command in Updating.
Run whenever to schedule the application's cronjobs.
bundle exec whenever -s 'environment=INSERT_ENV_HERE' --update-crontab
Please note that if you did not install your Ruby using rbenv, you will need to change the bundle command located in config/schedule.rb
rails server
bundle exec sidekiq -C config/sidekiq_character.yml
bundle exec sidekiq -C config/sidekiq_free_company.yml
When new data becomes available on patch day, it can be loaded into the database by running the data:update rake task.
git submodule update --remote
bin/rake data:update
bin/rake assets:precompile
# Restart the application
bin/rails console
[Achievement, Mount, Minion, Orchestrion, Emote, Barding, Hairstyle, Armoire, Outfit, Fashion, Facewear, Frame, Card, NPC].each { |model| count = model.where('created_at > ?', Date.current.beginning_of_day).update_all(patch: 'CURRENT PATCH', updated_at: Time.now); puts "#{model}: #{count}" if count != 0 }
exit
This data is available once the data repository has been updated with the latest patch data.
More action may be required in the event of complex game updates. Patch data must be populated manually.
FINAL FANTASY is a registered trademark of Square Enix Holdings Co., Ltd.
FINAL FANTASY XIV © SQUARE ENIX CO., LTD.
Hide collectables
https://github.com/fae-industries/ffxiv-collect/issues/145
Labels: big feature
Make the Random tool respect filters
https://github.com/fae-industries/ffxiv-collect/issues/136
Labels: good first issue
Implement the most basic of test suites
https://github.com/fae-industries/ffxiv-collect/issues/132
Labels: None
Stop tracking timestamps on character collections
https://github.com/fae-industries/ffxiv-collect/issues/131
Labels: None
Fix achievement/title association
https://github.com/fae-industries/ffxiv-collect/issues/130
Labels: None
Improve colors
https://github.com/fae-industries/ffxiv-collect/issues/114
Labels: improvement
Overhaul relics
https://github.com/fae-industries/ffxiv-collect/issues/90
Labels: big feature
Add race filter to hairstyles
https://github.com/fae-industries/ffxiv-collect/issues/83
Labels: feature
Add currency tool
https://github.com/fae-industries/ffxiv-collect/issues/82
Labels: feature
Allow hiding group members
https://github.com/fae-industries/ffxiv-collect/issues/79
Labels: feature