This sample shows how to get a minimal SvelteKit app up and running with Defang.
- Download Defang CLI
- Have a managed database service configured and have the connection string ready.
- (Optional) If you are using Defang BYOC authenticated with your AWS account
- (Optional - for local development) Docker CLI
To develop this app, you can run the sveltekit commands as you normally would on your local machine in the sveltekit directory. If you plan on adding other services, you might want to run it with docker compose. We have provided a compose.dev.yaml
file and a dev.Dockefile
to help you get started. Just run docker compose -f compose.dev.yaml up --build
to start your Sveltekit app in dev mode in a container.
- Open the terminal and type
defang login
- Type
defang compose up
in the CLI. - Your app will be running within a few minutes.
Title: SvelteKit
Short Description: A minimal SvelteKit app running on Defang.
Tags: SvelteKit, TypeScript, JavaScript, Svelte, Node.js, Frontend, TypeScript, JavaScript
Languages: nodejs