Skip to content

RecursionExcursion/dd-go-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dd-go-api

Go Version Dockerized Issues Last Commit

An API written in Go for Dune Digital, split into two main domains: WSD (Workspace Deployer) and BetBot.


Domains

WSD - Workspace Deployer

WSD is a web API that accepts scripts and returns binaries executable on the client’s system to set up their workspace. This includes launching URLs, applications, and more to automate environment bootstrapping.

BetBot

BetBot is a data aggregation API that scrapes thousands of ESPN API endpoints to compile real-time sports stats for betting analytics and predictions.


Tech Stack

  • Language: Go (Golang)
  • Containerized: Docker

Getting Started

1. Clone the repo

git clone https://github.com/your-org/dd-go-api.git
cd dd-go-api

2. Install Go modules

go mod tidy

3. Configure .env

PORT=<int>
ATLAS_URI=<your_mongo_connection_uri>

DB_NAME_BB=<your_betbot_db_name>
BB_API_KEY=<your_bb_api_key>
BB_JWT_SECRET=<your_bb_jwt_secret>

WSD_API_KEY=<your_wsd_api_key>

SELF_URL=<hosted_url>

CFB_API_KEY=<ctfr_api_key>
DB_NAME_CFBR=<cfbr_db_name>

DB_NAME_PICKLE=<your_pickle_db_name>
PICKLE_USERNAME=<app_username>
PICKLE_PASSWORD=<app_password>
PICKLE_SECRET=<app_secret>

4. Run

Option A- Run Locally

go run .

Option B- Run with Docker

docker build -t dd-go-api .
docker run -p 8080:8080 --env-file .env dd-go-api

Endpoints Overview

  • /wsd/* – All routes related to the Workspace Deployer

  • /betbot/* – All routes for BetBot stats and data access

  • /cfbr/* - All routes for college football ranker

  • /pickle* - All routes for The Pickle

  • For a full list of available routes, see the docs folder or inspect routes.go.

Notes

  • APIs require domain-specific API keys for access.

  • Some routes uses JWT for authentication.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors