https://github.com/jonny-rimek/wowmate
combatlog analysis for world of warcraft players
https://github.com/jonny-rimek/wowmate
cdk golang lambda serverless
Last synced: 3 months ago
JSON representation
combatlog analysis for world of warcraft players
- Host: GitHub
- URL: https://github.com/jonny-rimek/wowmate
- Owner: jonny-rimek
- License: mit
- Created: 2019-11-10T15:13:42.000Z (over 6 years ago)
- Default Branch: prod
- Last Pushed: 2023-04-10T21:35:42.000Z (almost 3 years ago)
- Last Synced: 2025-10-12T21:06:28.053Z (6 months ago)
- Topics: cdk, golang, lambda, serverless
- Language: Go
- Homepage: http://wowmate.io
- Size: 4.49 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 89
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wowmate mono repo
wowmate is a log analysis software for world of warcraft combatlogs.
## manual steps:
- creating the public hosted zone in route53
- enable http api logs
- enable cloudfront advanced metrics
#### local development
start api locally:
`./build.sh skipFrontend && sam local start-api --template cdk.out/wm.template.json --profile default --env-vars=env.json`
Important to note is, that the API doesn't support hot reloading because cdk zips the go code up and moves it to cdk.out dir.
That is the path in the cfn that sam cli uses, if I rebuild my go binaries, it doesn't matter, because the path changed.
invoke a single lambda:
`./build.sh skipFrontend && echo '{"pathParameters": {"dungeon_id": "2291"}}' | sam local invoke ApiDamageDungeonSummariesLambda00443886 --no-event --template cdk.out/wm.template.json --event - --profile default --env-vars=env.json`
invoke a lambda on every safe:
`watcher -cmd="./invokeLogDmg.sh" -pipe=true $(find $directory -type f -name "*.go" -not -path "./cdk.out/*" | tr '\n' ' ')`
To generate an event run `sam local generate-event sqs receive-message`. When passing in another
event as a body, make sure it is an escaped string, see convertInput.json as an example.
To get the message body print the string of body to the log
#### go mod
e.g. `go mod init github.com/jonny-rimek/wowmate/services/api/combatlogs-combatlog-uuid-damage`
#### go mod replace
`go mod edit -replace y=github.com/wowmate/jonny-rimek/wowmate/services/upload/convert/normalize./normalize`
add code that uses the package e.g. `normalize.Normalize`
manually import the package in the import section by adding `"github.com/wowmate/jonny-rimek/wowmate/services/upload/convert/normalize"`
#### upload infrastructure
