backend

command module
v0.0.0-...-373ae73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

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)
  • 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL