Skip to content
← projects

example-mdx-project

A demonstration of MDX features available in project detail pages.

Go active github ↗ live ↗

This page shows what you can do in an MDX project detail page — import components, use tables, code blocks with filenames, and diff highlighting.

What it does

A short paragraph explaining the problem this project solves and why it exists. Keep it honest and specific.

Stack

LayerTech
LanguageGo
DatabasePostgreSQL
DeployFly.io
QueueRedis

How it works

A few sentences on the architecture. What are the main moving parts?

func main() {
    db := mustConnect(os.Getenv("DATABASE_URL"))
    srv := NewServer(db)
    log.Fatal(srv.ListenAndServe(":8080"))
}main.go

Key decisions

What trade-offs did you make and why?

// Old approach: polling every second
time.Sleep(1 * time.Second)
rows, _ := db.Query("SELECT * FROM jobs WHERE status = 'pending'")

// New approach: LISTEN/NOTIFY via PostgreSQL
conn.Exec("LISTEN jobs_channel")
notification := <-conn.Notificationsqueue/worker.go

Status

What’s working, what’s not, what’s next.