modulepackage
0.0.0-20240902210055-2543ce197b61
Repository: https://github.com/utmmcss/deerhacks-backend.git
Documentation: pkg.go.dev
# README
DeerHacks API
DeerHacks Hackathon 2024 Backend API
Setup
- Run
go build
to install dependencies - Add the required
.env
file with the schema specified below - Gather credentials from microservices and add it to the
.env
file
Relevant URL'S
Getting Started
First, run the development server:
go run main.go
Send API requests to http://localhost:8000 (assuming port specified in .env file is 8000) with tools like Postman
.env format
PORT=8000
DB_URL = "host=<server name here> user=<username here> password=<password here> dbname=<same as username> port=5432 sslmode=disable"
SECRET = "youcantypeanythingyouwanthere"
# From the Discord Developer Portal
CLIENT_ID = ""
CLIENT_SECRET = ""
BOT_TOKEN = ""
REDIRECT_URI = ""
# The discord server your discord bot will be in
GUILD_ID = "967161405017055342"
#Change this to "production" if public
APP_ENV = "development"
REGISTRATION_CUTOFF=1704085200 # (2024-01-01 00:00:00 EST)
# AWS IAM Credentials. Ensure full S3 access is given
AWS_ACCESS_KEY_ID = ""
AWS_SECRET_ACCESS_KEY = ""
# For sending emails
BREVO_API_KEY = ""
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author