Skip to content

How to add to the database

polygirl edited this page Jul 2, 2019 · 1 revision

You can add any X-Men or spinoff comic that is contained within a collection. Comics outside of collections are not supported.

There are three files in the database folder:

  • Collections
  • Comics
  • Series

All comics are part of a series, like Uncanny X-Men and all series have volumes like Uncanny X-Men Volume 1. All comics are also part of a collection like X-Men Epic Collection: Children of the Atom

To add a new comic

  1. Find where to add it in the collections file. Can be anywhere but will usually be where the roughly ordered comment is * Roughly ordered for flow of crossovers until here.

  2. Customise the name, date and comics. Comic IDs are a concatenation of series name, volume and issue number. e.g. UncannyXMenVol31 is Uncanny X-Men volume 3 issue 1

  3. Now that you have defined which comics happen when in the reading order, and which collection they were published in, it’s time to add the comics themselves

  4. The comics.ts file is ordered alphabetically by series and volume so find where you want to add to. Assuming you are adding a new series, copy one of the blocks e.g. https://github.com/SubJunk/TimelineTools/blob/master/src/database/comics.ts#L93

  5. Customise the name and the list of comics and dates. The source of truth for our dates is marvel.com

  6. Now we have the comics within the collection we just need the series to exist if it does not already. So just copy a line in series.ts and add your new one https://github.com/SubJunk/TimelineTools/blob/master/src/database/series.ts#L108

  7. Each line in that file can contain all volumes in that series. A good example is at https://github.com/SubJunk/TimelineTools/blob/master/src/database/series.ts#L127 which is one series with three volumes.

  8. Add images

Clone this wiki locally