Skip to content

taufiqart/database-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database Sync

Multi-database synchronization scheduler with web dashboard.

Tech Stack

Layer Technology
Backend Go + Fiber v2 + GORM
Frontend SvelteKit + Tailwind CSS + shadcn-svelte
Queue Asynq (Redis)
Database PostgreSQL (primary), MySQL/MongoDB/SQLite (targets)
Container Docker + docker-compose

Structure

backend/          Go API server + Asynq worker
  cmd/server/     Fiber HTTP server entrypoint
  cmd/worker/     Asynq worker entrypoint
  internal/       App logic (auth, handler, service, model, repository, scheduler, database)
frontend/         SvelteKit dashboard
docker-compose.yml  Services: postgres, redis, backend, worker

Quick Start

cp .env.example backend/.env
docker compose up -d

Backend API: http://localhost:8080 Frontend: http://localhost:5173

Services

Service Port
PostgreSQL 5432
Redis 6379
Backend API 8080

Development

# Backend
cd backend && go run ./cmd/server

# Frontend
cd frontend && npm run dev