svelteapp-typescript-go
- Purpose: A demonstration of building a small, self-contained full-stack monolithic application using modern frameworks (not intended as a practical template for real-world applications).
- Target Audience: Developers interested in full-stack development with Svelte, Golang, and SQLite.
- Front-end:
- Built with Svelte 5 (upgraded syntax) and SvelteKit 2.
- Uses TypeScript, Bootstrap 5, and static site generation via
@sveltejs/adapter-static
.
- Back-end:
- Golang with gin for web server/RESTful services.
- SQLite database with
go-sqlite3
driver.
- Key Features:
- Self-contained with Docker support (multi-stage builds, ~25 MB image).
- Includes DevContainer/CodeSpace compatibility.
- Github Action workflow for dependency update testing.
- Routes:
/products
: Browse/add products to cart./order
: View/checkout order./summary/{id}
: Order result.
- Backend APIs:
GET /api/products
: Returns product data.POST /api/orders
: Writes order data and returns order ID.
- Database:
- Pre-populated SQLite database with
products
andorders
tables. - Example data included (e.g., Kayak, Lifejacket, Soccer Ball).
- Pre-populated SQLite database with
- Framework Support: Primarily Svelte (front-end), with Golang (back-end).
sveltesveltekittypescriptgolanggofrontendwebsitedockersqlite3fullstackfull-stackgo-gin
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button