Service API for MineNTU 臺大麥塊.
We use UUID_V4 as id in each table, so we need to install the extension on database initialization.
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";We use dontenv to manage environment variables, please follow instruction below:
- Create
.envfile in the root of this project. - Paste variables below with its value in the file.
GOOGLE_CLIENT_ID=
DB_USER=
DB_PASS=
DB_NAME=
DB_HOST=
DB_PORT=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
SENTRY_DSN=
BOT_ORIGIN=
FRONTEND_ORIGIN=
TOKEN_SECRET=