Skip to content

cripantea/dashboard-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard API

Lightweight REST API server built in Go as a high-performance alternative to a PHP/Laravel backend.

Overview

Serves aggregated advertising data to 400+ publisher clients via three endpoints, with Redis caching to minimize database load.

Stack

  • Go — API server
  • Redis — response caching (5 min TTL)
  • MySQL — data storage via stored procedures
  • Vue.js + ChartJS — frontend (separate repo)

Endpoints

  • GET /getDataByDomain — revenue and metrics grouped by domain
  • GET /getDataByDate — revenue and metrics grouped by date
  • GET /getDataBySSP — revenue grouped by SSP per day

Configuration

Copy .env.example to .env and set your credentials:

DB_DSN=user:password@tcp(host:port)/dbname
REDIS_ADDR=localhost:6379

Run

go run main.go

About

Lightweight Go API server with Redis caching for a real-time advertising dashboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages