Skip to content
Combat tracker for Dungeons and Dragons (D&D) 5th Edition
TypeScript CSS HTML Other
Branch: development
Clone or download
Pull request Compare This branch is 1 commit ahead, 60 commits behind cynicaloptimist:development.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
common
html
lesscss
public
server
.baseDir.js
.baseDir.js.map
.dockerignore
.gitignore
.travis.yml
CONTRIBUTING.md
Dockerfile
Gruntfile.js
PRIVACY.md
README.md
_config.yml
about.md
license
ogl_creatures.json
ogl_spells.json
package-lock.json
package.json
test-post.html
test_cases.txt
thanks.ts
tslint.json
web.config
webpack.config.base.js
webpack.config.dev.js
webpack.config.prod.js

README.md

improved-initiative

Combat tracker for Dungeons and Dragons (D&D) 5th Edition

The official Improved Initiative app lives at https://www.improved-initiative.com

To run, install node.js and run the following in the cloned directory:

npm install

npm start

Once the Improved Initiative app is running, the ui can be accessed at http://localhost

You can start the dev build process by running grunt. This will automatically rebuild the project when you change any TypeScript or LessCSS files.

Development of Improved Initiative is supported through Patreon.

Refer to CONTRIBUTING.md if you'd like to contribute code.

App Settings

You can configure your instance of Improved Initiative with these settings. All are optional, basic functionality should work if you don't specify any.

  • PORT - Defaults to 80
  • NODE_ENV - Set to "production" to satisfy react, set to "development" to disable html view caching.
  • BASE_URL - Used in absolute URLs on client side. Falls back to relative urls if unavailable. This is the canonical URL for Patreon callback and browser localStorage.
  • SESSION_SECRET - Used to keep session continuity through app restarts or something. Handed to express-session.
  • DEFAULT_ACCOUNT_LEVEL - Set to "accountsync" or "epicinitiative" to grant rewards to all users. Useful if you have no DB.
  • DEFAULT_PATREON_ID - Set the dummy Patreon user id when running with DEFAULT_ACCOUNT_LEVEL set.
  • DB_CONNECTION_STRING - Provide a DB connection string for session and user account storage. In memory Mongo DB will be used otherwise, which is cleared on app restart.
  • METRICS_DB_CONNECTION_STRING - Provide a DB connection string to write metrics to.
  • PATREON_URL, PATREON_CLIENT_ID, PATREON_CLIENT_SECRET - Configuration for Patreon integration

Docker

Running Improved Initiative within Docker is possible, but completely optional and currently experimental. Proceed with caution and when in doubt, refer to the Docker documentation.

Building the Docker Image

To build the docker image with a development build, run:

docker build -t improved-initiative:latest .

To build the image with a production build, run:

docker build --build-arg NODE_ENV=production -t improved-initiative:prod .

Running the App in a Docker Container

To start the application within the container, run:

docker run -p80:80 --name improved-initiative improved-initiative:latest

Or, to run the production build:

docker run -p80:80 --name improved-initiative improved-initiative:prod

Stopping and Removing the Container

Assuming you started the container with the name improved-initiative as shown above, the following commands will stop the container and then remove it:

docker stop improved-initiative

docker rm improved-initiative

License

The Improved Initiative app is made available under the MIT license.

You can’t perform that action at this time.