Skip to content

heckin-dev/amashan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ama'Shan

World of Warcraft utilities or something. I basically just get bored and fill my time by working on random projects. This is one of them.


Configuration

Flags

  • addr sets the string address to bind to
    • defaults to :9090
  • denv is a boolean, when true attempts to read a .env file in running directory
    • defaults to false

Environment

There are a few environment variables that we work with. These can be set in your environment or through a .env file and set auto-magically with the -denv runtime flag.

We'll include an example .env file below, followed by information regarding each of the variables with links for obtaining any relevant access credentials.

# BattleNet
BNET_CLIENT_ID="<id>"
BNET_CLIENT_SECRET="<secret>"
BNET_REDIRECT_URL="<callback_url>"

# WarcraftLogs
WL_CLIENT_ID="<id>"
WL_CLIENT_SECRET="<secret>"
WL_REDIRECT_URL="<callback_url>"

# Session
SESSION_KEY="<your_session_key>"

# Redis
REDIS_URL="<redis_url>"

BattleNet

Otherwise, referred to as BNET is Blizzard's API for all things Blizzard (e.g. World of Warcraft). We require an API Client which can be managed here.

We redirect to the following OAuth2 URLs:

https://amashan.com/api/auth/battlenet/callback
http://localhost:9090/api/auth/battlenet/callback

WarcraftLogs

Otherwise, referred to as WL is WarcraftLog's API for all things log and parse related. We require an API client which can be managed here.

We redirect to the following OAuth2 URLs:

https://amashan.com/api/auth/warcraftlogs/callback
http://localhost:9090/api/auth/warcraftlogs/callback

Session

This is the value that will be used for the CookieStore.

Redis URL

This is the value used to connect with redis.ParseURL(...).

Dependencies

Releases

No releases published

Packages

No packages published

Languages