Skip to content

A simple web app for looking up adversaries for the FFG's Star Wars RPG.

Notifications You must be signed in to change notification settings

stoogoff/sw-adversaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Star Wars: Adversaries

A simple web app for looking up adversaries for the FFG's Star Wars RPG. See it in action here: http://swa.stoogoff.com/.

Built using:

Structure

  • build - build using gulp and babel
  • dev - development version, created by gulp
  • live - live version, created by gulp, everything is minified
  • src - source code
    • src/media - all assets
      • src/media/data - JSON files containing adversary data
      • src/media/fonts - Star Wars dice font
      • src/media/js - all javascript
        • src/media/js/components - React components
        • src/media/js/lib - config and utilities
      • src/media/sass - sass stylesheet

Install and Build

In the build directory run npm install. Once everything has installed run any of the following:

  • gulp dev clean Delete the dev directory and start afresh.
  • gulp dev build Completely build the project into the dev directory.
  • gulp watch Watch files for changes and rebuild as necessary.

For Windows:

  • Download npm from https://nodejs.org/en/download/.
  • Add C:\Program Files\nodejs\ to your path.
  • Switch to your build directory and run npm install.
  • Then run npm install [email protected], and then npm install [email protected].
  • To build from the build directory, run node_modules.bin\gulp dev build, or node_modules.bin\gulp live build.

Host Locally

For Windows:

  • In the build directory, run npm install http-server -g
  • Run http-server ../dev -c-1 -p 8010 to start a local server on port 8010 with no caching. In your browser, navigate to http://localhost:8010
  • If you want to see changes reflected immediately, open a new Powershell/CMD window and run gulp dev watch in the build directory
  • Change any of the watched files (including the JSON data files) and refresh the browser to see the changes

Alternatively, if you have python installed run npm run server from the build directory. This will start a web server using python -m SimpleHTTPServer with the ../dev directory as the root.

Gulp

Main tasks:

live Output to the live directory and minify Javascript and CSS.

dev Output to the dev directory as is. This is the default action.

clean Delete the output directory.

build Build everything and save to the output directory.

watch After the dev task has completed watch all HTML, JS, SASS and JSON files for changes.

deploy After the live task has completed deploy to an AWS bucket. Target and authentication details need to be placed in a file called aws.json in the build directory. The format for this is:

{
	"key": "AUTH_KEY",
	"secret": "AUTH_SECRET",
	"bucket": "BUCKET_NAME",
	"region": "REGION"
}

This is only useful if you have your own AWS setup and are planning on hosting a copy yourself.

Completed Adversaries

  • core books
    • Age of Rebellion
    • Edge of the Empire
    • Force and Destiny
  • gm kits
    • EotE (Debts to Pay)
    • AoR (Dead in the water)
    • Fad (Hidden Depths)
  • source books
    • Lords of Nal Hutta
    • Strongholds of Resistance
    • Suns of Fortune
    • Nexus of Power
    • Dawn of Rebellion
    • Rise of the Separatists
    • Collapse of the Republic
  • collected source books
    • Allies and Adversaries
    • Gadgets and Gear
  • career books
    • Dangerous Covenants (no stats)
    • Enter the Unknown (5 droids)
    • Desparate Allies
    • Endless Vigil
    • Far Horizons
    • Fly Casual (no stats)
    • Forged in Battle (no stats)
    • Keeping the Peace
    • Knights of Fate
    • Lead by Example
    • No Disintegrations (no stats)
    • Savage Spirits
    • Special Modifications
    • Stay on Target
    • Unlimited Power (no stats)
    • Fully Operational
    • Cyphers and Masks
    • Disciples of Harmony
  • beginner's games
    • Age of Rebellion (Takeover at Whisper Base)
    • Edge of the Empire (Escape from Mos Shuuta)
    • Force and Destiny (Mountaintop Rescue)
    • The Force Awakens (Discovery on Jakku)
  • adventure books
    • Beyond the Rim
    • Chronicles of the Gatekeeper
    • Jewel of Yavin
    • Friends Like These
    • Ghosts of Dathomir
    • Mask of the Pirate Queen
    • Onslaught at Arda I
    • Rescue at Glare Peak
    • Under a Black Sun
  • adventures
    • A Call for Heroes (TFA follow on adventure)
    • A Deal Gone Wrong
    • A Quick Stopover
    • Beyond the Boiling Sea
    • Beyond the Rim
    • Crates of Krayts (EotE Beta adventure)
    • Chronicles of the Gatekeeper
    • Claustrophobia
    • Conical Six Summit
    • Dead in the Water (AoR GM Kit)
    • Debts to Pay (EotE GM Kit)
    • Escape from Mos Shuuta
    • Exploring the Acablas Ruins
    • Friends Like These
    • Ghosts of Dathomir
    • Hard Bargain
    • Hidden Depths (FaD GM Kit)
    • If It Sounds too Good to be True...
    • In Too Deep
    • Jewel of Yavin
    • Lessons from the Past
    • Long Arm of the Law
    • Lost Knowledge (FaD Beta adventure)
    • Mask of the Pirate Queen
    • Onslaught at Arda I
    • Operation Shadowpoint (AoR follow on adventure)
    • Operation: Shell Game (AoR Beta game)
    • Perlemian Haul
    • Phantoms in the Dark
    • Rescue at Glare Peak
    • Rubbing Slimy Elbows
    • Sabacc Game on the Row
    • Taming the Dragon
    • Takeover at Whisper Base
    • The Corellian Shuffle
    • The Dead Road
    • The Geharr Incident
    • The Long Arm of the Hutt (EotE follow on adventure)
    • The Light Within
    • The Menagerie
    • The Trial of Skill
    • Toydarian Grocery Shopping
    • Trouble Brewing
    • Tunnel Delving
    • Under a Black Sun
    • Vault of Justice
    • Welcome Aboard
    • Witch’s Wrath
    • Lure of the Lost (FaD follow on adventure)

TODO

  • Print multiple tabs
  • Collapse of the Republic

About

A simple web app for looking up adversaries for the FFG's Star Wars RPG.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •