Heisenslaught
A custom drafting tool for (On|Off|Cole)slaught.
Local Setup
App Configuration
-
Copy
src/Heisenslaught/appsettings.json
to/opt/Heisenslaught/appsettings.json
-
Changes the values of
ClientID
andClientSecret
to match your battle.net application - Create Here -
Add any battleTags you wish to make super users to
AutoGrantSuperUserToBattleTags
- they will be added to the SU role the first time they log inExample appsettings.json:
{ "MongoDb": { "ConnectionString": "mongodb://localhost:27017", "Database": "Heisenslaught" }, "Authentication": { "BattleNet": { "ClientID": "HAN76GhJ87Jhgs", "ClientSecret": "MHHVS8s6b66dhs7dj" } }, "UserCreation": { "AutoGrantSuperUserToBattleTags": [ "John#1234", "SuperAwsome#9876" ] } }
SSL Configuration
- Instructions coming soon(tm)
UI
- In
src/HeisenslaughtUI
runnpm install
- Note there is currently a bug in the version of node-sass used by angular-cli. After
npm install
you need to runnpm rebuild node-sass
to generate the vendor folder needed.
- Note there is currently a bug in the version of node-sass used by angular-cli. After
- In
src/HeisenslaughtUI
run./node_modules/bin/ng.cmd build
(Windows) or./node_modules/.bin/ng build
(OS X / Linux)- Alternatively you can install angular cli globally and just run
ng build
- Alternatively you can install angular cli globally and just run
Please complete these steps before running the server
Windows Server
- Install Visual Studio 2017
- Select the following Workloads when installing
- Web Development
- .NET Core and Docker (Preview)
- Select the following Workloads when installing
- Setup static file compilation
- In
src/Heisenslaught
runnpm install
- Open
Heisenslaught.sln
- In
- Press
F5
to launch the application
OS X / Linux Server
- If you are upgrading from a previous version of dotnet you may need to remove your previous version. Helpful scripts can be found here.
- Install Preview 3 (or later)
- Run
dotnet restore
- In
src/Heisenslaught
runASPNETCORE_ENVIRONMENT=Development dotnet run
If you are on Arch Linux then you can figure it out yourself :) (or wait until this is updated).
Deployment
Please refer to ops/Readme.md.