Skip to content

vovadyach/go-admin-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Admin Panel

Paginated REST API with a React admin dashboard for managing users and posts.

Go PostgreSQL React

Tech Stack

  • Go — Chi router, pgx/v5 driver
  • PostgreSQL — with migrations and seed data
  • React + TypeScript — data dashboard
  • Docker — PostgreSQL container
  • Goose — database migrations
  • Make — project commands

Quick Start

git clone https://github.com/vovadyach/go-sandbox
cd go-sandbox
cp .env.example .env
docker compose up db -d
make migrate-up
cd api
go mod tidy
go run cmd/seed/main.go
go run cmd/server/main.go

Available Commands

make migrate-up                        # Run migrations
make migrate-down                      # Rollback migrations
make migrate-status                    # Check migration status
make migrate-create name=add_table     # Create new migration

API Endpoints

GET /health                          — Health check
GET /api/users?page=1&limit=20       — List users (paginated)
GET /api/users?role=admin            — Filter by role
GET /api/users?status=active         — Filter by status
GET /api/users/:id                   — User detail
GET /api/users/:id/posts             — User's posts (paginated)
GET /api/posts?page=1&limit=20       — List posts (paginated)
GET /api/posts?status=published      — Filter by status

Status

🚧 Work in progress

About

Paginated REST API in Go (Chi, pgx, PostgreSQL) with a React dashboard

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors