Badger is a badge database and tracker application for City of Heroes badge hunters.
To run the app, just visit the following link, no need to download or run anything: https://n15g.github.io/badger/
I designed badger to solve a couple of issues that have cropped up in the post-sunset era:
- The original badge hunting sites and tools are out of date.
- Much of the old tools are closed source and abandoned.
- There are now multiple server groups running, each with different badges available on their servers.
To that end, Badger is open source. It is also designed to handle different servers with different badges available. The badge and server data are also stored in open-source git repositories under the GPL 3.0 and also published to npm, making it easy to use in other applications if you wish. I actively encourage anyone who wants to use the badge data for other projects to do so.
The currently supported server groups are:
- Homecoming - https://github.com/n15g/coh-content-db-homecoming
If anyone is interested in creating or maintaining the data for other server groups, let me know.
...and of course, happy badging!
Go hunt. Kill Skuls.
If you'd like to run the app locally for development purposes, here's what you'll need:
This repository just contains the code for the Badger UI.
The badge data for Homecoming is maintained in the coh-content-db-homecoming project. See the README file for that repository for details on how to modify badge content.
- Node JS
- git for source control
- For badge development an understanding of TypeScript
- For UI development, an understanding of Angular
- Clone the project
git clone git@github.com:n15g/badger.git
- Install project dependencies
npm install
- Launch the development server
npm run start
The app will now be accessible at http://localhost:4200. Most changes will be reflected automatically without needing to restart the server.
To test changes to a content database, like the Homecoming Content DB, you'll need to build and link that project locally.
For Homecoming specifically, you can follow the following process:
- Clone the coh-content-db-homecoming repo:
git clone git@github.com:n15g/coh-content-db-homecoming.git
- From the coh-content-db-homecoming folder:
- Run
npm link
- Make your changes to the content.
- Run
npm build
ornpm watch
to build automatically on changes.
- Run
- From the badger folder:
- Run
npm run link:hc
to link to your local changes in the coh-content-db-homecoming folder. - Run
npm run start
to start the development server and see your changes reflected in the UI.
- Run
Use Semantic Versioning.
npm version <new version>
- Update the changelog.
Build the application bundle and publish to github pages.
npm run build
npm run pages