modulepackage
0.0.0-20221121080635-373ae738a7f0
Repository: https://github.com/dungeonplan/backend.git
Documentation: pkg.go.dev
# README
Dungeonplan Backend
This is the backend for Dungeonplan, written in GoLang.
Feel free to contribute.
Prerequisites for Running
- Go v1.18+
- SSO Service (currently just Discord is supported)
- Register a new application at https://discord.com/developers/applications
- Environment variables
- DUNGEONPLAN_DISCORD_CLIENT_ID - Discord Client ID for registered Application
- DUNGEONPLAN_DISCORD_CLIENT_SECRET- Discord Client Secret for registered Application
- DUNGEONPLAN_PRESHARED_KEY - A random string with at least 128 characters for JWT creation
- DUNGEONPLAN_ENV - "dev" or "prod", to switch between configs (see config.go)
Running / Building
- Clone Repository
- Download dependencies
- go get github.com/golang-jwt/jwt/v4
- go get golang.org/x/oauth2
- go get github.com/gorilla/mux
- go build *.go
- (Optional) ./backend
How to contribute
- Fork Repository
- Develop your Features
- Create a Pull Request
# Packages
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Generic Response for Successes/Fails.