Skip to content

togo-framework/create-togo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

togo

create-togo-app

The project template for togo, rendered by togo new <app>. It is also a Go module that exports the template as an embed.FS (consumed by the CLI) — and is designed to later back an npx create-togo-app flow.

import createtogoapp "github.com/togo-framework/create-togo-app/template"

fsys := createtogoapp.FS() // embedded project skeleton rooted at "project"

What it scaffolds

A full togo app: chi + Huma (REST/OpenAPI) + gqlgen (GraphQL) + sqlc + Atlas + pgx/Postgres backend, a Next.js (App Router) frontend, Supabase-ready .env, docker-compose, a .claude/ tree (skills/agents/rules) and a .mcp.json wired to the togo MCP server.

Files ending in .tmpl are rendered with the app name and module path; all other files are copied verbatim.

Database stacks

togo new prompts for a database (or pass --db). The chosen driver + DSN are wired into togo.yaml, .env.example, go.mod, and internal/app so the DB works from day 0; docker-backed stacks get a docker-compose.yml you can bring up with togo db:up (togo db:down to stop).

--db Driver Compose
sqlite (default) sqlite (modernc) none — embedded file
postgres pgx postgres:16
togo-postgres pgx batteries-included Supabase build — see below
supabase pgx supabase/postgres (run supabase start for the full stack)
mysql mysql mysql:8
mongodb app-level *mongo.Client (see internal/app/mongo.go) mongo:7

togo-postgres bundles the architecture stack. Real, running services in the compose: ParadeDB (paradedb/paradedb → pg_search + pgvector + pg_analytics/duckdb) and NATS JetStream (MQ). In-app Go libraries (not containers): River (jobs) and Atlas (migrations). Commented placeholders to enable + configure: GoTrue (auth) and Storage; pg_cron / pg_partman require an image that ships them. The SQL ORM (sqlc/Atlas/make:resource) targets Postgres/MySQL/SQLite — MongoDB is wired as a separate client, not the ORM backend.

License

MIT


💎 Premium sponsors

togo is proudly sponsored by ID8 Media and One Studio.

ID8 Media        One Studio

Sponsor this project

 

Packages

 
 
 

Contributors