Skip to content
forked from tcgone/carddb

Content of TCG ONE New Card Database. Please see/submit card definitions under src/main/resources/cards.

Notifications You must be signed in to change notification settings

axpendix/carddb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carddb

The mighty new card database of TCG ONE.

Models can be inspected here

Card data is defined in YAML files and placed in data/src/main/resources/cards.

Data in this repository powers the card, set and format data on https://tcgone.net/cards.

The definitions are also served through an API under https://tcgone.net/api/. Examples:

  • https://tcgone.net/api/v1/cards/search?query=bulbasaur
  • https://tcgone.net/api/v1/cards/search?set=bs
  • https://tcgone.net/api/v1/sets
  • https://tcgone.net/api/v1/formats

You are free to use this API for your projects, please contact us in #dev for more information.

Automatic Build and Deployment via Github Actions

When a new commit is pushed to a pull request, build action builds and runs some validations on the changes. These checks must pass in order to allow the code to be merged to master.

When a new commit is pushed to master (i.e. after merging a PR), deploy action builds and deploys the project artifact to our maven repository.

In order to have the card changes show up, you may ask a project contributor to trigger the deploy action of tcgone/front module.

carddb/tools

This module has some toolset to add/update cards to TCG ONE card database and card implementations.

Features

Instructions

  1. Clone the repo: git clone https://github.com/tcgone/carddb.git
  2. Build the whole carddb module: mvn install
  3. Switch to tools: cd tools
  4. View options: java -jar target/carddb-tools-*.jar
  5. Read from kirby's repo, convert to yaml and implementation templates: java -jar target/carddb-tools-*.jar "--pio=../ptcgo-data/en_US/sm10.json" "--pio=../ptcgo-data/en_US/det1.json" --export-yaml --export-impl-tmpl
    • Read expansion data from pokemontcg.io to fill in several details you otherwise have to remember to fill in yourself. java -jar target/carddb-tools-*.jar"--pio-expansion=../pokemon-tcg-data/sets/en.json""--pio=../ptcgo-data/en_US/sm10.json" "--pio=../ptcgo-data/en_US/det1.json" --export-yaml --export-impl-tmpl
  6. Download scans: java -jar target/carddb-tools-*.jar "--pio=../ptcgo-data/en_US/sm10.json" "--pio=../ptcgo-data/en_US/det1.json" --download-scans
    • Expansion data can be read here automatically name the folder created to hold the scans. Note: Folder names for existing Promo sets should be checked for accuracy before adding to the scans server.

About

Content of TCG ONE New Card Database. Please see/submit card definitions under src/main/resources/cards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.7%
  • Python 2.3%
  • Perl 1.6%
  • Makefile 1.2%
  • Shell 0.2%