├── static ├── .nojekyll └── favicon.png ├── .npmrc ├── src ├── routes │ ├── +page.svelte │ ├── +layout.ts │ ├── +error.svelte │ ├── +page.ts │ ├── products │ │ ├── +page.ts │ │ └── +page.svelte │ ├── +layout.svelte │ ├── summary │ │ └── [id] │ │ │ └── +page.svelte │ └── order │ │ └── +page.svelte ├── app.html ├── app.d.ts └── lib │ ├── store │ └── globalStates.svelte.ts │ ├── components │ ├── Header.svelte │ ├── CategoryList.svelte │ └── ProductItem.svelte │ ├── api │ └── services.ts │ ├── data │ └── mockData.json │ └── type │ └── entities.ts ├── .devcontainer ├── setup.sh └── devcontainer.json ├── db ├── data.sqlite3 ├── data.sqlite3_backup └── scheme.sql ├── main.go ├── vite.config.ts ├── .vscode └── extensions.json ├── .dockerignore ├── .gitignore ├── svelte.config.js ├── backend ├── entities.go ├── server.go └── service.go ├── tsconfig.json ├── Dockerfile ├── .github ├── workflows │ └── dependabot-test.yml └── dependabot.yml ├── LICENSE ├── go.mod ├── package.json ├── go.sum ├── README.md └── yarn.lock /static/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /src/routes/+page.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/routes/+layout.ts: -------------------------------------------------------------------------------- 1 | export const prerender = false; 2 | -------------------------------------------------------------------------------- /.devcontainer/setup.sh: -------------------------------------------------------------------------------- 1 | npm i -g yarn@latest 2 | yarn setup-full -------------------------------------------------------------------------------- /db/data.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alankrantas/svelteapp-typescript-go/HEAD/db/data.sqlite3 -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alankrantas/svelteapp-typescript-go/HEAD/static/favicon.png -------------------------------------------------------------------------------- /db/data.sqlite3_backup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alankrantas/svelteapp-typescript-go/HEAD/db/data.sqlite3_backup -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "main/backend" 4 | 5 | func main() { 6 | backend.Server() // start Golang backend server/service 7 | } 8 | -------------------------------------------------------------------------------- /src/routes/+error.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
Thanks for placing your order.
20 |Your order is #{$page.params.id}
21 |We'll ship your goods as soon as possible.
22 | OK 23 || Quantity | 26 |Product | 27 |Price | 28 |Subtotal | 29 |
|---|---|---|---|
| {line.quantity} | 35 |{line.product.name} | 36 |${line.product.price.toFixed(2)} | 37 |${line.total.toFixed(2)} | 38 |
| Total: | 44 |45 | 49 | ${order.total.toFixed(2)} 50 | 51 | | 52 |||