api

module
v0.0.0-...-468e309 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0

README

Sakura API

Installation

Install the dependencies

go get

Copy the .env.sample file as .env

cp .env.sample .env

Create a discord application on Discord's Developer Portal, then fill in your information in the .env file

DISCORD_KEY="application id"
DISCORD_SECRET="application secret"
DISCORD_SCOPES="identify"
DISCORD_REDIRECT="http://website url/auth/discord/callback"

Usage

To run in a development environment:

go run main.go

Directories

Path Synopsis
cmd
api
internal
app
pkg
api

Jump to

Keyboard shortcuts

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