Skip to content

typescript-any/llm-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔧 Migrations & Development Setup

All migrations are located in the migrations/ folder. You can run them either directly with go run or using the Makefile shortcuts.


🚀 Development

Start the dev server with hot-reload (using Air):

make dev

🗄️ Database (Docker Compose)

Spin up Postgres + pgAdmin (if configured in docker-compose.yml):

make db-up

Stop the database:

make db-down

📜 Migrations (Go Runner)

Run all migrations (up):

make migrate-up
# or
go run cmd/migrate/main.go -direction up

Run a specific number of steps (up):

go run cmd/migrate/main.go -direction up -steps 1

Rollback migrations (down):

make migrate-down
# or
go run cmd/migrate/main.go -direction down

Rollback a specific number of steps (down):

go run cmd/migrate/main.go -direction down -steps 1

⚠️ Make sure your DATABASE_URL is set correctly in .env before running migrations or starting the server.

About

Go micro service for llm-playgorund

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published